Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter API returned a 401 (Unauthorized), This request is not properly authenticated #407

Closed
johendry opened this issue Jan 26, 2016 · 1 comment

Comments

@johendry
Copy link

My code:
from twython import Twython

APP_KEY = 'my app_key'
APP_SECRET ='my app_secret_key'

OAUTH_TOKEN = auth['oauth_token']
OAUTH_TOKEN_SECRET = auth['oauth_token_secret']

twitter = Twython(APP_KEY, APP_SECRET)
auth = twitter.get_authentication_tokens(callback_url='http://www.mysite.com/callback')
twitter = Twython(OAUTH_TOKEN)

twitter.request('https://ads-api.twitter.com/0/accounts/myaccountid/campaigns')

and got error like this
Twitter API returned a 401 (Unauthorized), This request is not properly authenticated

what should i do?

@michaelhelmick
Copy link
Collaborator

#403 adds support for the Twitter Ads API. It will be merged and a release will be cut by the end of the month. Sorry for the wait, just have been really busy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants