Commit graph

20 commits

Author SHA1 Message Date
Mike Helmick
7469f8bc73 Fixes #175, #177
* Auth Errors are thrown in the correct spots
* Error messages are a lot cleaner than before and correspond with
error codes on https://dev.twitter.com/docs/error-codes-responses
2013-04-12 11:17:40 -04:00
Mike Helmick
abaa3e558a oauth_verifier required, remove simplejson dependency, update endpoint
* 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!,
2013-04-08 11:49:12 -04:00
Mike Helmick
e65790d717 New showOwnedLists method
Returns the lists owned by the specified Twitter user. Private lists
will only be shown if the authenticated user is also the owner of the
lists.
2013-04-04 14:52:54 -04:00
Virendra Rajput
454a41fe94 added the missing slash in "getMentionsTimeline"
was unable to fetch mentions because of the missing slash and the missing '.json'
2013-03-31 21:23:16 +05:30
Mike Helmick
a172136f3e Update Twitter Endpoints & Internal Functions
* 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
2013-03-20 23:24:26 -04:00
Ryan Merl
6baa4fdd14 Updated rate limit status API Endpoint to the v1.1 endpoint 2013-01-10 03:41:22 -05:00
Ajay Nadathur
fe3fcbdb04 moved api version into __init__ method and added method to delete multiple users from a list in batch mode 2012-12-30 23:06:36 +00:00
Christopher Brown
d83cc32b3d Added ability to grab oembed html given a tweet id. 2012-12-06 16:51:34 -05:00
Mike Helmick
7d82206614 Support for Friends and Followers list endpoints
"Two new methods in API v1.1 provide simplified access to user friend & follower data: https://dev.twitter.com/docs/api/1.1/get/followers/listhttps://dev.twitter.com/docs/api/1.1/get/friends/list … ^TS" - @TwitterAPI
2012-11-29 15:32:07 -05:00
Mike Helmick
a3967390e1 Moved around some code, support for removing and updating Profile Banners
Line 213 needs to check for status code as well now because
remove/updating banner does not return content, only status code
2012-10-04 16:53:28 -04:00
Denis Veselov
156368cf6e add myTotals endpoint for py2k 2012-08-28 00:48:32 +04:00
Michael Helmick
19293b54a9 Remove exceptions and methods in 2.0
* update twitter_endpoints with isListSubscriber and isListMember
instead of having them in twython.py

* app_key and app_secret in place to take over twitter_token and
twitter_secret

* updated methods to have the short hand description show up, should
always be on first line and the description.. not repeating the function

* fixed other method docs and stuff
2012-05-13 12:38:30 -04:00
Michael Helmick
0ee5e5877e Cleaning up endpoints per Twitter Spring 2012 deprecations
https://dev.twitter.com/docs/deprecations/spring-2012
2012-05-08 12:14:45 -04:00
Michael Helmick
813626a9ad Maybe the twitter_http_status_codes were a good idea. :P
I still think it's weird to have them, but I'm not against giving the
user more information. I put back in the twitter_http_status_codes
variable, but I changed where the logic was being handled, instead of
it happening the in _request, it will be asserted in Twython error if
an error_code is passed AND the error_code is in
twitter_http_status_codes
2012-04-09 10:59:13 -04:00
Michael Helmick
e3d9ed656b PEP8 Cleanup on Twitter Endpoints 2012-03-06 16:58:27 -05:00
oliver
88474546e1 Adding in end point for userLookup to facilitate https://dev.twitter.com/docs/api/1/get/users/lookup 2011-10-26 18:04:59 +01:00
Erik Scheffers
ec6169292d Added a few missing endpoints, fixed a few wrong endpoints 2011-02-24 10:53:24 +08:00
Erik Scheffers
e13d371fef Added API calls "/friendships/incoming" and "/friendships/outgoing" 2011-02-24 10:53:24 +08:00
Eugen Pyvovarov
5f1d0d4e90 verify credentials and return userinfo 2010-11-10 08:27:21 -08:00
Ryan McGrath
eb5541e433 Twython 1.3, OAuth support is now finally included and working. Ships with an example Django application to get people started with OAuth, entire library is refactored to not be a royal clusterfsck. Enjoy. 2010-10-16 23:37:47 -04:00