Stocktwits api oauth: How to get parameter from request python redirect [ACCESS TOKEN]

Viewed 235
import request

url ="https://api.stocktwits.com/api/2/oauth/authorize?client_id=[CLIENT_ID]&response_type=token&redirect_uri=http://[YOUR TEST DOMAIN]&scope=read,watch_lists,publish_messages,publish_watch_lists,follow_users,follow_stocks";

print(url);
res = requests.get(url);
print(res)

How to access the access_token?

returned URL has the token when run in the browser.

http://[YOUR TEST URI]/#access_token=[ACCESS TOKEN]

Or is there another way to authenticate?

https://api.stocktwits.com/developers/docs/authentication

0 Answers
Related