* Update `updateProfileBannerImage` to use the v1.1 endpoint
* Added `getProfileBannerSizes` method using the GET
/users/profile_banner.json endpoint
* Fixed a couple of endpoints using variable in the url:
* destroyDirectMessage, createBlock, destroyBlock no longer use id in
their urls, this shouldn't break anything though.
(t.destroyDirectMessage(id=123) should still work)
* `oauth_verifier` is now **required** when calling
`get_authorized_tokens`
* Updated docs - removed getProfileImageUrl docs since it is
deprecated. Noted since `Twython` 2.7.0 that users should focus on
migrating to v1.1 endpoints since Twitter is deprecating v1 endpoints
in May!,
* Twitter Endpoints are now in the order of
https://dev.twitter.com/docs/api/1.1
* No need to repeat search function internally when it is available via
`twitter_endpoints.py`
* Make `searchGen` use self.search, instead of self.get with the full
search url
* No sense in setting self.auth twice
* Make self.client a requests.session to reuse headers and auth
* requests 0.13.2 dependency isn't needed, but doesn't hurt
- Fixes for README
- Re-added a bulkUserLookup method that warns for deprecation
- Merged in @michaelhelmick's work on media and oauth2 deprecation
Conflicts:
setup.py
twython/twython.py
Addresses most changes and issues with Twitter Spring cleanup 2012. Documentation
update on methods, started move to docs in RST format. Exceptions set to eventually
be deprecated (along with search functions).
Conflicts:
twython/twython.py
* We don't need RequestException anymore.
* I changed TwythonError to raise TwythonRateLimitError instead of
TwythonAPIError since TwythonRateLimitError is more verbose and in the
belief we should deprecate TwythonAPILimit and ultimately remove it in
2.0
* And I updated the version to 1.7.0 -- I feel like development as far
as versioning seems like it's going fast, but versioning is versioning
and I'm following Twitter's rhythm of versioning
<major>.<minor>.<bugfix>, minor changing when minor features or
significant fixes have been added. In this case, TwythonRateLimitError
should start being caught in place of TwythonAPILimit
Just in case Twitter releases something in their API and a developer
wants to implement it on their app, but we haven't gotten around to
putting it in Twython yet. :)
- 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
* 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