WIP: 3.0.0 #210
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#210
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "3.0.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
3.0.0
twython/twython.pytotwython/api.pyin attempt to make structure look a little neatergetHomeTimelineis nowget_home_timeline)shorten_url. With therequestslibrary, shortening a URL on your own is simple enoughtwitter_token,twitter_secretandcallback_urlare no longer passed toTwython.__init__twitter_tokenandtwitter_secrethave been replaced withapp_keyandapp_secretrespectivelycallback_urlis now passed throughTwython.get_authentication_tokenstest_twython.pydocstrings per http://www.python.org/dev/peps/pep-0257/get_list_memberships, method is Twitter API 1.0 deprecatedendpoints.pynow containsEndpointsMixin(rather than the previousapi_tabledict) for Twython, which enables Twython to use functions declared in the Mixin.obtain_access_tokento obtain an OAuth 2 Application Only read-only access tokenconstruct_api_urlnow accepts keyword arguments like other Twython methods (e.g. instead of passing{'q': 'twitter', 'result_type': 'recent'}, passq='twitter', result_type='recent')client_argsto the Twython__init__to manipulate request variables.client_argsaccepts a dictionary of keywords and values that accepted byrequests(http://docs.python-requests.org/en/latest/api/#sessionapi) [ex. headers, proxies, verify(SSL verification)] and the "request" section directly below it.get_application_rate_limit_statusAPI method for returning the current rate limits for the specified sourceinvalidate_tokenAPI method which allows registed apps to revoke an access token presenting its client credentialsget_lastfunction_headernow accepts adefault_return_valueparameter. This means that if you pass a second value (ex.Twython.get_lastfunction_header('x-rate-limit-remaining', 0)) and the value is not found, it returns your default valueTo-do
# -*- coding: utf-8 -*-api_tablefor actual functions (EndpointsMixin) fixes #211requestsconfig fixes #213Changes Unknown when pulling
80c428992bon 3.0.0 into * on master*.Changes Unknown when pulling
f74596c40bon 3.0.0 into * on master*.Changes Unknown when pulling
ea178df702on 3.0.0 into * on master*.Changes Unknown when pulling
ae9b9e2cfcon 3.0.0 into * on master*.Changes Unknown when pulling
8c41a3e9daon 3.0.0 into * on master*.Changes Unknown when pulling
b9b7199cc6on 3.0.0 into * on master*.Changes Unknown when pulling
53b930b75fon 3.0.0 into * on master*.Changes Unknown when pulling
9813a4c8f5on 3.0.0 into * on master*.Changes Unknown when pulling
478c139af2on 3.0.0 into * on master*.Changes Unknown when pulling
693b8163b2on 3.0.0 into * on master*.Changes Unknown when pulling
7cab9d5dd1on 3.0.0 into * on master*.Changes Unknown when pulling
756eb9060eon 3.0.0 into * on master*.Changes Unknown when pulling
2af2fc00deon 3.0.0 into * on master*.This all looks good to me, I think. I took a look at all the changes - nice on the
.rsthighlighting! Tempted to hit the merge button myself but I think you deserve the honors, haha... go for it when you're ready.I'm going to take another look over it tomorrow. Make sure everything that should be shipped will get shipped. Also, think we should get rid of the wiki?
Sent from my iPhone