Commit graph

311 commits

Author SHA1 Message Date
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
Ryan McGrath
2d3d5b5b68 Bump to 2.5.4 2012-12-14 07:13:28 -05:00
Christopher Brown
d83cc32b3d Added ability to grab oembed html given a tweet id. 2012-12-06 16:51:34 -05:00
Ryan McGrath
34e9474b91 Version bump 2012-12-01 01:34:38 -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
80282d9aa7 UpdateStatusWithMedia url accounting for API v1
Fixes #130
2012-11-14 15:13:16 -05:00
Ryan McGrath
a125ad6048 Version bump 2012-11-10 20:16:34 -05:00
Ryan McGrath
e85e8e38ad Merge pull request #127 from michaelhelmick/fix-legacy-urls
Fixing up some urls, cleaning up code
2012-11-10 17:03:14 -08:00
Mike Helmick
be494d4c77 Fixing up some urls, cleaning up code
* Cleaned up exceptionType into ternary
* getProfileImage is only supported in Twitter API v1
* Updated other media update methods to use 1.1 and pass  dynamic params
2012-11-09 11:14:36 -05:00
Mike Helmick
d52ce03de4 Version number bump, no need for env python line 2012-11-09 10:50:32 -05:00
Ryan McGrath
b6c5dc5a48 Merged chbrown's patch to use 1.1 for default versioning endpoints; bumped to 2.5.1 2012-11-09 04:42:02 -05:00
Ryan McGrath
32d29fb007 Finish second merge of @michaelhelmick's Twython patches 2012-11-09 04:36:06 -05:00
Mike Helmick
98e213df9c Fixes #121 2012-10-29 12:37:16 -04:00
Mike Helmick
5a516c2bfb Version bump 2012-10-10 12:55:35 -04:00
Mike Helmick
b314a5606e Deleting auth stuff, oops 2012-10-04 16:56:20 -04: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
Mike Helmick
448b4f27b6 Update requests version and Twython version 2012-10-04 14:08:46 -04:00
Christopher Brown
0c25651921 Use version 1.1 for everything, especially search 2012-09-13 22:38:05 -05:00
Mike Helmick
8e72adead2 Version bump since new endpoint added, update requests version 2012-08-31 14:22:48 -04:00
Denis Veselov
156368cf6e add myTotals endpoint for py2k 2012-08-28 00:48:32 +04:00
Ryan McGrath
a489a47a67 Merge pull request #110 from jvanasco/master
better handling of API errors
2012-08-25 16:30:03 -07:00
jonathan vanasco
341fdd8f49 removed prints. dumb me 2012-08-01 13:53:44 -04:00
jonathan vanasco
9d21865409 adjusted the logic in the twitter response reader to better handle API errors.
this could likely be done a bit cleaner -- but this works.
2012-08-01 13:32:06 -04:00
Mike Helmick
9e5a96655d 2.3.4 release, requires requests 0.13.4 >, basically we don't have to url encode params anymore and can just pass a dict of params to the request (finally! :D) 2012-07-27 12:10:36 -04:00
Ryan McGrath
e1c4035a63 Version bump for bug-fix rollout 2012-07-25 03:56:12 +09:00
lucadex
c5468ee1b5 Update twython/__init__.py 2012-07-24 12:45:32 +03:00
Mohmmadhd
7986da859f Update master 2012-07-10 15:22:31 +03:00
Ryan McGrath
0bcc15ecf3 2.3.2, latest @michaelhelmick fixes 2012-06-30 01:55:30 +09:00
Mike Helmick
d864376816 Code cleanup, Update requests version
* 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
2012-06-29 12:19:37 -04:00
Ryan McGrath
73a1910066 Version bump for 2.3.1 release 2012-06-30 00:52:40 +09:00
Mike Helmick
f4b2ebc40a This func no longer needs to urlencode the query, _request does it 2012-06-28 11:13:49 -04:00
Mike Helmick
a9b7b836c9 Fixes #103
Fix #93 is incorrect. We can avoid this by just removing the check and
quote_plus
2012-06-28 11:08:59 -04:00
Mike Grouchy
b552913e53 Fixed broken params kwargs which was breaking updateStatusWithMedia
* params are passed as **kwargs everywhere else, so updated
_media_update to be consistent with that.
* updated to updateProfileBackgroundImage to fall in line with
 _media_update changes.
2012-06-27 09:53:35 -04:00
Mike Helmick
2155ae0c23 Fix error in README.md, strip some not-needed comments and fixed a ternary 2012-06-25 11:50:44 -04:00
Ryan McGrath
068c504030 Merge branch 'requests_image_posting' (Pull Request #91)
- 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
2012-06-25 05:02:57 +09:00
Ryan McGrath
79842875be Merge pull request #97 from terrycojones/call-parent-init-in-exception-classes-96
call-parent-init-in-exception-classes-96
2012-06-24 12:16:34 -07:00
Ryan McGrath
9d57f34fce Merge pull request #93 from leandroferreira/master
corrected issue when searches with "q" gets encoded twice
2012-06-24 12:15:10 -07:00
terrycojones
1261b7b304 Some small suggested clean-ups with error / exception processing. 2012-06-11 15:48:24 -04:00
fumieval
3f4e374911 fixed the mistake that prints proxies to console for debugging. 2012-06-03 18:43:09 +09:00
fumieval
7caa688146 Supported proxies, just added an argument to Twython.__init__. 2012-06-03 18:25:25 +09:00
Leandro Ferreira
92f9c94146 Corrected when search q gets encoded twice 2012-05-31 10:59:43 -03:00
Mike Helmick
f232b873cb 2.2.0 2012-05-30 11:35:51 -03:00
Ryan McGrath
0d00ae97fb 2.0.1 release, fixes auth error 2012-05-23 18:49:08 +09:00
Michael Helmick
fc9e21435e Auth fixes for search and callback url 2012-05-22 10:40:38 -04:00
Michael Helmick
d93b48cded 2.1.0 Release
Set `self.auth` = None so that calls (like searching or getting a
profile avatar don't error out) Fixes 90
2012-05-17 12:22:37 -04:00
Michael Helmick
5e817195ac 2.1.0 Release
* Removal of oauth2 lib, `requests` has fully taken over. :)
* FIXED: Obtaining auth url with specified callback was broke..
wouldn't give you auth url if you specified a callback url
* Updated requests to pass the headers that are passed in the init, so
User-Agent is once again `Twython Python Twitter Library v2.1.0`
👍 :)
* Catching exception when Stream API doesn't return valid JSON to parse
* Removed `DELETE` method. As of the Spring 2012 clean up, Twitter no
longer supports this method
* Updated `post` internal func to take files as kwarg
* `params - params or {}` only needs to be done in `_request`, just a
lot of redundant code on my part, sorry ;P
* Removed `bulkUserLookup`, there is no need for this to be a special
case, anyone can pass a string of username or user ids and chances are
if they're reading the docs and using this library they'll understand
how to use `lookupUser()` in `twitter_endpoints.py` passing params
provided in the Twitter docs
* Changed internal `oauth_secret` variable to be more consistent with
the keyword arg in the init `oauth_token_secret`
2012-05-16 12:09:26 -04:00
Michael Helmick
a4e3af1ad4 Critical bug fixes 2012-05-14 15:16:50 -04:00
Michael Helmick
2f80933cb8 Get rid of requests-oauth and a bunch of other schtuff 2012-05-14 11:12:23 -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
Ryan McGrath
59c723ed7e Merge branch 'method_cleanups' from @michaelhelmick
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
2012-05-14 00:42:19 +09:00