-
3.1.2 Stable
released this
2016-03-21 08:52:14 -07:00 | 218 commits to master since this release3.1.2 (2013-12-05)
- Fixed Changelog (HISTORY.rst)
3.1.1 (2013-12-05)
- Update
requestsversion to 2.1.0. - Fixed: Streaming issue where
Exceptionsin handlers oron_successwhich subclassValueErrorwould previously be caught and reported as a JSON decoding problem, andon_error()would be called (with status_code=200) - Fixed issue where XML was returned when bad tokens were passed to
get_authorized_tokens - Fixed import for
setupcausing installation to fail on some devices (eg. Nokia N9/MeeGo)
3.1.0 (2013-09-25)
- Added
html_for_tweetstatic method. This method accepts a tweet object returned from a Twitter API call and will return a string with urls, mentions and hashtags in the tweet replaced with HTML. - Pass
client_argsto the streaming__init__, much like in core Twython (you can pass headers, timeout, hooks, proxies, etc.). - Streamer has new parameter
handlerswhich accepts a list of strings related to functions that are apart of the Streaming class and start with "on_". i.e. ['delete'] is passed, when 'delete' is received from a stream response;on_deletewill be called. - When an actual request error happens and a
RequestExceptionis raised, it is caught and aTwythonErroris raised instead for convenience. - Added "cursor"-like functionality. Endpoints with the attribute
iter_modewill be able to be passed toTwython.cursorand returned as a generator. Twython.search_genhas been deprecated. Please usetwitter.cursor(twitter.search, q='your_query')instead, wheretwitteris yourTwythoninstance.- Added methods
get_list_memberships,get_twitter_configuration,get_supported_languages,get_privacy_policy,get_tos - Added
auth_endpointparameter toTwython.__init__for cases when the right parameters weren't being shown during the authentication step. - Fixed streaming issue where results wouldn't be returned for streams that weren't so active (See https://github.com/ryanmcgrath/twython/issues/202#issuecomment-19915708)
- Streaming API now uses
_transparent_paramsso when passedTrueorFalseor an array, etc. Twython formats it to meet Twitter parameter standards (i.e. ['ryanmcgrath', 'mikehelmick', 'twitterapi'] would convert to string 'ryanmcgrath,mikehelmick,twitterapi')
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads