-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: 3.0.0 #210
WIP: 3.0.0 #210
Conversation
## 3.0.0 - Changed ``twython/twython.py`` to ``twython/api.py`` in attempt to make structure look a little neater - Removed all camelCase function access (anything like ``getHomeTimeline`` is now ``get_home_timeline``) Fixes #199 - Removed ``shorten_url``. With the ``requests`` library, shortening a URL on your own is simple enough - ``twitter_token``, ``twitter_secret`` and ``callback_url`` are no longer passed to ``Twython.__init__`` Fixes #185 - ``twitter_token`` and ``twitter_secret`` have been replaced with ``app_key`` and ``app_secret`` respectively - ``callback_url`` is now passed through ``Twython.get_authentication_tokens`` [ci skip]
[ci skip]
[ci skip]
[ci skip]
[ci skip]
[ci skip]
[ci skip]
[ci skip]
[ci skip]
client_args allow for users to manipulate the request without our init being cluttered up with keyword args [ci skip]
…for PR though) I'm dumb.
I should run local tests before I commit :/
Changes Unknown when pulling 80c4289 on 3.0.0 into * on master*. |
Changes Unknown when pulling f74596c on 3.0.0 into * on master*. |
Programming is hard
Changes Unknown when pulling ea178df on 3.0.0 into * on master*. |
Changes Unknown when pulling ae9b9e2 on 3.0.0 into * on master*. |
Changes Unknown when pulling b9b7199 on 3.0.0 into * on master*. |
…tempting better coverage reports Secure variables were exposed. Had to make new ones.
Changes Unknown when pulling 53b930b on 3.0.0 into * on master*. |
Changes Unknown when pulling 9813a4c on 3.0.0 into * on master*. |
Changes Unknown when pulling 478c139 on 3.0.0 into * on master*. |
Changes Unknown when pulling 693b816 on 3.0.0 into * on master*. |
We don't support Python 2.5 and after 2.6 parse_qsl is available in urlparse [ci skip]
…dded a test, fixed function name update_profile_background_image has been in endpoints.py twice for a bit, my bad. Using update_profile_banner_image for the function name to update profile banner image (that's what it was called previously)
Changes Unknown when pulling 7cab9d5 on 3.0.0 into * on master*. |
[ci skip]
[ci skip]
Changes Unknown when pulling 756eb90 on 3.0.0 into * on master*. |
…r people with non-web apps Removed README.md, rST can highlight syntax too I found out! :)
Changes Unknown when pulling 2af2fc0 on 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 |
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
|
Releasing June 18th! [ci skip]
3.0.0
twython/twython.py
totwython/api.py
in attempt to make structure look a little neatergetHomeTimeline
is nowget_home_timeline
)shorten_url
. With therequests
library, shortening a URL on your own is simple enoughtwitter_token
,twitter_secret
andcallback_url
are no longer passed toTwython.__init__
twitter_token
andtwitter_secret
have been replaced withapp_key
andapp_secret
respectivelycallback_url
is now passed throughTwython.get_authentication_tokens
test_twython.py
docstrings per http://www.python.org/dev/peps/pep-0257/get_list_memberships
, method is Twitter API 1.0 deprecatedendpoints.py
now containsEndpointsMixin
(rather than the previousapi_table
dict) for Twython, which enables Twython to use functions declared in the Mixin.obtain_access_token
to obtain an OAuth 2 Application Only read-only access tokenconstruct_api_url
now accepts keyword arguments like other Twython methods (e.g. instead of passing{'q': 'twitter', 'result_type': 'recent'}
, passq='twitter', result_type='recent'
)client_args
to the Twython__init__
to manipulate request variables.client_args
accepts 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_status
API method for returning the current rate limits for the specified sourceinvalidate_token
API method which allows registed apps to revoke an access token presenting its client credentialsget_lastfunction_header
now accepts adefault_return_value
parameter. 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_table
for actual functions (EndpointsMixin
) fixes Subsitute api_table for functions #211requests
config fixes Better way to pass requests config #213