app_key=" "
app_secret=" "
twitter = Twython(app_key=app_key,
app_secret=app_secret)
auth_props = twitter.get_authentication_tokens()
oauth_token = auth_props['oauth_token']
oauth_token_secret = auth_props['auth_url']
print 'Connect to Twitter via: %s' % auth_props['auth_url']
print twitter.search(q='python')
I have the above twython code and the authentication is not working.
I am getting,
TwythonAuthError: Twitter API returned a 400 (Bad Request), Bad Authentication data at print twitter.search(q='python')
Do I need a callback url? I am just starting a project, I do not have a dedicated website for it.