- Added
get_retweeters_idsmethod - Fixed
TwythonDeprecationWarningon camelCase functions if the camelCase was the same as the PEP8 function (i.e.Twython.retweetdid not change) - Fixed error message bubbling when error message returned from Twitter was not an array (i.e. if you try to retweet something twice, the error is not found at index 0)
- Added "transparent" parameters for making requests, meaning users can pass bool values (True, False) to Twython methods and we convert your params in the background to satisfy the Twitter API. Also, file objects can now be passed seamlessly (see examples in README and in /examples dir for details)
- Callback URL is optional in
get_authentication_tokensto accomedate those using OOB authorization (non web clients) - Not part of the python package, but tests are now available along with Travis CI hooks
- Added
__repr__definition for Twython, when calling only returning <Twython: APP_KEY> - Cleaned up
Twython.construct_api_url, uses "transparent" parameters (see 4th bullet in this version for explaination) - Update
requestsandrequests-oauthlibrequirements, fixing posting files AND post data together, making authenticated requests in general in Python 3.3
- "PEP8" all the functions. Switch functions from camelCase() to underscore_funcs(). (i.e.
updateStatus()is nowupdate_status())
- Fixed streaming issue #144, added
TwythonStreamerto aid users in a friendly streaming experience (streaming examples inexamplesand README's have been updated as well) Twythonnow requiresrequests-oauthlib0.3.1, fixes #154 (unable to upload media when sending POST data with the file)
- Added a
HISTORY.rstto start tracking history of changes - Updated
twitter_endpoints.pytoendpoints.pyfor cleanliness - Removed twython3k directory, no longer needed
- Added
compat.pyfor compatability with Python 2.6 and greater - Added some ascii art, moved description of Twython and
__author__to__init__.py - Added
version.pyto store the current Twython version, instead of repeating it twice -- it also had to go into it's own file because of dependencies ofrequestsandrequests-oauthlib, install would fail because those libraries weren't installed yet (on fresh install of Twython) - Removed
find_packages()fromsetup.py, only one package (we can just define it) - added quick publish method for Ryan and I:
python setup.py publishis faster to type and easier to remember thanpython setup.py sdist upload - Removed
base_urlfromendpoints.pybecause we're just repeating it inTwython.__init__ Twython.get_authentication_tokens()now takescallback_urlargument rather than passing thecallback_urlthroughTwython.__init__,callback_urlis only used in theget_authentication_tokensmethod and nowhere else (kept in init though for backwards compatability)- Updated README to better reflect current Twython codebase
- Added
warnings.simplefilter('default')line intwython.pyfor Python 2.7 and greater to display Deprecation Warnings in console - Added Deprecation Warnings for usage of
twitter_token,twitter_secretandcallback_urlinTwython.__init__ - Headers now always include the User-Agent as Twython vXX unless User-Agent is overwritten
- Removed senseless TwythonError thrown if method is not GET or POST, who cares -- if the user passes something other than GET or POST just let Twitter return the error that they messed up
- Removed conversion to unicode of (int, bool) params passed to a requests.
requestsisn't greedy about variables that can't be converted to unicode anymore - Removed bulkUserLookup (please use lookupUser instead), removed getProfileImageUrl (will be completely removed from Twitter API on May 7th, 2013)
- Updated shortenUrl to actually work for those using it, but it is being deprecated since requests makes it easy for developers to implement their own url shortening in their app (see ryanmcgrath#184)
- Twython Deprecation Warnings will now be seen in shell when using Python 2.7 and greater
- Twython now takes
ssl_verifyparameter, defaults True. Set False if you're having development server issues - Removed internal
_media_updatefunction, we could have always just usedself.post
- Fixed issue where Twython Exceptions were not being logged correctly
- Fixed
AttributeErrorwhen trying to decode the JSON response viaResponse.json()
- Removed
simplejsondependency - Fixed
destroyDirectMessage,createBlock,destroyBlockendpoints intwitter_endpoints.py - Added
getProfileBannerSizesmethod totwitter_endpoints.py - Made oauth_verifier argument required in
get_authorized_tokens - Update
updateProfileBannerImageto use v1.1 endpoint
- New
showOwnedListsmethod
- Added missing slash to
getMentionsTimelineintwitter_endpoints.py
- Updated
twitter_endpoints.pyto better reflect order of API endpoints on the Twitter API v1.1 docs site