ryanmcgrath/twython — Issue #59: Getting rid of OAUTH_CALLBACK?
Author: michaelhelmick
Created: 2012-02-24 17:40:15+00:00
State: open

So, you can't specify your oauth_callback in the request for a token; it must be done in the Twitter application at https://dev.twitter.com

Should we get rid of this whole logic?:

```python
# Try and gauge the old OAuth2 library spec. Versions 1.5 and greater no longer have the callback
# url as part of the request object; older versions we need to patch for Python 2.5... ugh. ;P
OAUTH_CALLBACK_IN_URL = False
OAUTH_LIB_SUPPORTS_CALLBACK = False
if not hasattr(oauth, '_version') or float(oauth._version.manual_verstr) <= 1.4:
OAUTH_CLIENT_INSPECTION = inspect.getargspec(oauth.Client.request)
try:
OAUTH_LIB_SUPPORTS_CALLBACK = 'callback_url' in OAUTH_CLIENT_INSPECTION.args
except AttributeError:
# Python 2.5 doesn't return named tuples, so don't look for an args section specifically.
OAUTH_LIB_SUPPORTS_CALLBACK = 'callback_url' in OAUTH_CLIENT_INSPECTION
else:
OAUTH_CALLBACK_IN_URL = True
```

And any places in get_authentication_tokens() where it refs the callback url?