- requests is now the default url/http library, thanks to Mike Helmick
- Initial pass at a Streaming API is now included (Twython.stream()), due to how easy
requests makes it. Would actually be sad if we *didn't* have this... thanks, Kenneth. >_>;
- Return of shortenURL, for people who may have relied on it before.
- Deleted streaming handler that existed before but never got implemented fully.
- Exceptions now prefixed with Twython, but brought back originals with a more verbose error directing
people to new ones, deprecate fully in future.
- Twython3k now has an OAuth fix for callback_urls, though it still relies on httplib2. Thanks @jbouvier!
- Added a list of contributors to the README files, something which I should have done long ago. Thank you all.
* Removed shortenUrl since Twitter ALWAYS shortens the URL to a t.co,
anyways.
* Since removing shortenUrl, no need for urllib2 anymore
* No need for httplib2 anymore, either
* Rid of a lot of libs not being used
* Changing Exceptions to prefix with "Twython", just safer in case
other apps have "AuthError", etc. for some reason.
* You can now update user profile image or user profile background
image thanks to the Python requests library.
* Updated setup to include 'requests' as a required package
* Changed to beginning hashbang to use the users environment python
version
* try/except for parse_qsl, removed try/excepts where it used
cgi.parse_qsl/urlparse.parse_sql
* Lines 161/162 (using self.consumer/token) <- this addition ended up
not being needed, but it doesn't hurt.
* updateProfileBackgroundImage() - param 'tile' is now True/False
rather than a string "true" or string "false"
* removed encode_multipart_formdata func, not needed any longer
Old versions of OAuth didn't have _version attribute, so Twython crashes
on them with AttributeError.
This version first checks if there is _version attribute. If no,
obviously it's an old version.
The patch by Eugene (9133d0f10e) is nice, because you don't have to
manually encode() the parameters yourself. But it sucks a little,
because all your parameter values must be unicodes now.
Proposed patch encodes unicodes to utf-8 and allows the olde strs and
longs (I love to use longs in 'id' fields somewhy).
* version argument was ignored
* user_id and screen_name lists were not url-escaped, and always ended
with a trailing comma
* unknown parameter 'lol=1' removed
* allow other arguments to users/lookup to be added (kwargs)
* added http headers to request
site will use to return the request token.
Supports both OAuth 1.0 and 1.0a methods of setting the oauth_callback
parameter. For OAuth 1.0a support, a patched version of python-oauth2
is currently required (see
https://github.com/simplegeo/python-oauth2/pull/43).
Availability of OAuth 1.0a support in python-oauth2 is autodetected
and a suitable warning is given if the remote site requires it but
python-oauth2 doesn't support it.