Commit graph

595 commits

Author SHA1 Message Date
Ryan McGrath
a3edbb2348 New package structure; twython is now separated out into core/oauth/streaming. To maintain compatibility with older Twython versions, simply import twython like: 'import twython.core as twython' - this will allow for easier oauth/streaming development, and should hopefully fix a lot of the installation issues people kept running into with easy_install 2009-12-17 03:05:39 -05:00
Ryan McGrath
fc5aaebda3 Removing more useless build cruft 2009-12-17 02:34:56 -05:00
Ryan McGrath
d1c579af31 Rearranging Twython to be a proper package structure 2009-12-17 02:14:44 -05:00
Ryan McGrath
2ae4bdde93 Cleaning up useless junk, this'll return at some point 2009-12-17 02:11:52 -05:00
Ryan McGrath
00246ff4ec Cleaning old builds... 2009-12-17 02:06:10 -05:00
Ryan McGrath
0b552d4d0e Changing simplejson requirement notice (Python 2.6 doesn't need it) 2009-12-17 01:58:28 -05:00
Ryan McGrath
cdba60ecca Adding installation notes to README, thanks to a note from Idris (that I, sadly, missed for the longest time) 2009-12-17 01:57:15 -05:00
Ryan McGrath
f74aae38a9 Adding installation notes to README, thanks to a note from Idris (that I, sadly, missed for the longest time) 2009-12-17 01:56:48 -05:00
Ryan McGrath
c0370abed6 Adding installation notes to README, thanks to a note from Idris (that I, sadly, missed for the longest time) 2009-12-17 01:55:12 -05:00
Ryan McGrath
f82702e706 Proxy authentication support for Twython. Experimental, needs testing - pass a proxy object (username/password/host/port) to the setup method, Twython will try and route everything through the proxy and properly handle things. Headers can now be added to un-authed requests; proxies also work with both authed/un-authed requests. 2009-12-10 03:14:33 -05:00
Ryan McGrath
b491faf757 Proxy authentication support for Twython. Experimental, needs testing - pass a proxy object (username/password/host/port) to the setup method, Twython will try and route everything through the proxy and properly handle things. Headers can now be added to un-authed requests; proxies also work with both authed/un-authed requests. 2009-12-10 03:12:24 -05:00
Ryan McGrath
68c483d431 Twython 0.9 - enough has changed with the Twitter API as of late that this merits a new release. 0.8 was beginning to show age as the API moved forward, and is now deprecated as a result - 0.9 is the way to go (or trunk, if you're adventurous. ;D) 2009-11-23 22:09:30 -05:00
Ryan McGrath
9ca737b986 Twython 0.9 - enough has changed with the Twitter API as of late that this merits a new release. 0.8 was beginning to show age as the API moved forward, and is now deprecated as a result - 0.9 is the way to go (or trunk, if you're adventurous. ;D) 2009-11-23 22:03:21 -05:00
Ryan McGrath
d37f91ce8e Accidentally commited a changeset in the last push that stripped out all the import statements. Needless to say, this was bad - fixed now. 2009-11-20 04:19:43 -05:00
Ryan McGrath
61f77252bf updateStatus() now supports latitude/longitude parameters for Twitter's API; OAuth functionality moved out of Twython core and into it's own module. This should solve the annoying problems people were running into with OAuth-include related problems when they never wanted/needed OAuth in the first place. 2009-11-20 04:16:42 -05:00
Ryan McGrath
60aaba6ad7 Fixed delete methods for List API (I believe, user testing is the best method to check here). Some of the list methods were throwing incorrect openers if you didn't authenticate; those have been fixed now as well. This commit also lands support for the new Trends API from Twitter (Available/WoeID), as well as the new 'Search Users' API. These changes were also migrated to the 3k build, so test away. ;) 2009-11-18 04:55:54 -05:00
Ryan McGrath
01a84f4ce0 Basic Lists API support is here; everything should work, sans DELETE calls. Twitter has apparently decided to only allow HTTP DELETE calls for certain List API methods, in contrast to the old ways where a POST would work fine as well. Not sure why they did this; yes, it's ideal, but nowhere near enough crap supports DELETE/PUT calls. At any rate, this stuff may also depend on Twitter propogating some API changes - test it out, review it, let me know what you think. This piece is going to be somewhat annoying to implement... 2009-11-04 04:12:51 -05:00
Ryan McGrath
2ee2c0a251 A massive amount of code changes - Twython now supports Twitter's versioning API, and uses it by default. We default to API version 1, but this can be overridden on a class or function basis by specifying 'version=x' in the respective calls. The search.twitter methods remain largely untouched, as they still seem to be on a separate API - reportSpam() is also fixed now. Try this out, and feel free to open any tickets in the Issues tracker if you find anything. 2009-10-19 06:32:51 -04:00
Ryan McGrath
601bb0246a twython.reportSpam() is now included, and it *should* work, but for some reason I'm getting constant 404's at the moment whenever I try to use it (even outside of Twython, the calls seem to fail...). This'll be migrated to Twython3k once I'm sure it's actually working - would love for people to test this out and make sure I'm not an idiot. ;) 2009-10-16 03:01:28 -04:00
idris
09cce11143 oops my bad. fixed the examples properly this time 2009-10-11 19:31:23 -04:00
Ryan McGrath
024742d51b All example code now properly references Twython instead of Tango - this should've been done months ago, can't believe it slipped my mind. Sorry for anyone who was totally confused by this. ;P 2009-10-10 17:22:29 -04:00
Ryan McGrath
46c93f4adb A stub for further work on Streaming API integration - nothing to see here yet, move along... 2009-10-05 02:07:03 -04:00
Ryan McGrath
23aeff128d Support for the cursoring parameter (getFriendsIDs(), getFollowersIDs(), getFriendsStatus(), getFollowersStatus()) is in Twython now, which puts us more in line for Twitter's deprecation of the page method on the 26th of October. statuses/retweets is also now supported through getRetweets() 2009-09-29 02:58:20 -04:00
Ryan McGrath
44de246cde Simple Django app skeleton for OAuth testing; currently doesn't do anything special, just wanted it in the repo for testing purposes. 2009-09-24 04:05:38 -04:00
Ryan McGrath
df38e3312a Skeleton for a basic OAuth example, using Django. (Currently not functioning, just wanted it in the repo) 2009-09-24 04:04:10 -04:00
Ryan McGrath
9007722c23 Fixed AuthError issue (#8 in the issue tracker) - AuthError was being passed one argument too many... 2009-09-21 23:32:15 -04:00
Ryan McGrath
93ea27f1b3 Fix for issue #7 (filed by kumar303), wherein setup.py reads the wrong README file for description purposes 2009-09-20 13:09:37 -04:00
Ryan McGrath
f6e655eb6d Minor README updates 2009-09-17 02:00:35 -04:00
Ryan McGrath
c0eb101dd3 Merge branch 'master' of git@github.com:ryanmcgrath/twython 2009-09-17 01:58:40 -04:00
Ryan McGrath
d7d099b52d Moving README to Markdown 2009-09-17 01:58:23 -04:00
jlin
a90595f241 Don't cast id to a string as it's, much of the time, already a friggin' string. By casting, we end up causing 404's all over the place. 2009-09-13 19:35:45 -04:00
Ryan McGrath
a1c4b17c6d Raise AuthError() instead of a generic TwythonError() when first-time authentication fails. Not sure why this was being done generic before, but it makes no sense now... 2009-09-11 02:32:17 -04:00
Ryan McGrath
d6f6df2045 Force any methods that handle image uploading to open the image (for encoding) as a Binary file, was doing ASCII before (oddly, this wasn't caught until now. Major thanks to Yoav Aviram for pointing this out. :D 2009-09-06 15:48:58 -04:00
Ryan McGrath
34340248de Porting various things over to the Twython3k build - purely experimental, as usual 2009-09-05 01:50:30 -04:00
Ryan McGrath
69fd3cc7db Check for whether or not we can load simplejson from django.utils as a last ditch effort in import statements 2009-09-04 00:36:36 -04:00
Ryan McGrath
3369f7d81d Fixed import errors with Twython, cleaned up some OAuth self.references junk, and fixed showUser to make requests even if there's no authentication being done (thanks to Risto for tipping me off to the last one ;) 2009-09-04 00:33:57 -04:00
Ryan McGrath
b54782c744 Including a version (1.0) of oauth.py for Twython experiments. Override at your own discretion/risk. :D 2009-09-04 00:21:00 -04:00
Ryan McGrath
f7df3c3bae Some very experimental, probably not working yet, OAuth related pieces. Heavily inspired by
henriklied's 'django-twitter-oauth' work.
2009-09-04 00:16:52 -04:00
Ryan McGrath
0331eb0612 Added a showFriendship() method that works with Twitter's API, and fixed the way createFriendship() and destroyFriendship() were making requests (was making GET requests in both instances, requires POST - go figure). Thanks to @tetsunosuke for spotting these and bringing them to my attention. ;) 2009-09-02 01:16:20 -04:00
Ryan McGrath
8f975506d5 checkIfFriendshipExists() was previously throwing a POST, when it should've been doing a GET request. Up until this point, it would have returned HTTP 400 errors on all calls - fixed now (both Twython2k and Twython3k). Thanks to Risto Haukioja for pointing this out to me. ;) 2009-09-01 02:11:46 -04:00
Ryan McGrath
80bc6f9fd0 Fixing id error in .destroyStatus(). For some reason, this method is still returning consistent 400 HTTP response codes, but I get the feeling this is moreso a bug with Twitter than with Twython. The request works, and deletes whatever status was specified, but there's no proper values returned from Twitter that are in line with their specs. 2009-08-31 02:15:57 -04:00
Ryan McGrath
0934d7146a Removing the ugly authtype parameter requirement from .setup() - now, by passing username and password, it automatically defaults to Basic (HTTP) authentication. In the future, providing consumer key/secrets will automatically tender OAuth login. As always, .setup() by itself remains a login-less method to pull down Twitter data (search, etc). This'll be included in the 0.9 release; 0.8 users still need to specify authtype=Basic in their .setup() calls if they want Basic Auth. 2009-08-29 01:30:27 -04:00
Ryan McGrath
bbfd874643 Twython 0.8 release. Docstrings, RT API, and a host of other bugfixes. Next, and hopefully final, large part to tackle is OAuth. Getting closer... 2009-08-28 02:53:48 -04:00
Ryan McGrath
88d89f5652 Docstrings are now in place, thanks to some awesome work by Kulbir Saini. New 0.8 release is about to go out. :D 2009-08-28 02:01:25 -04:00
Ryan McGrath
f760ba1358 Somehow I missed the showUser/friendsStatus/followersStatus methods up until now. Not sure how, but major thanks go to Chris Babcock for pointing this out to me. Any commits after this will be OAuth and Docs focused - might be nearing a 1.0 release! ;) 2009-08-25 01:05:19 -04:00
Ryan McGrath
90789b73eb Fairly large commit - this should fix a slew of issues with passing results from functions (follower ids, for instance) to other functions. Before, they were returned as Numbers, but most functions expect Strings, so there's an extra conversion layer now which should help out on that front. urlencode also properly encodes to utf-8 now (major thanks to contributions from Maatsu on this). Password is also no longer stored as an instance variable. These changes are mirrored in Twython3k, but I've not yet had time to test that in full - as with anything Python3k related, proceed with caution. (There are also some changes relating to how string concatenation is done, but that's all minor in scope) 2009-08-24 02:47:02 -04:00
Ryan McGrath
6ab69d4636 Incremental commit; started decorator function for auth checking, new exception (twython.AuthError) which will (in the future) be raised in the event of authentication failure. 2009-08-23 04:14:23 -04:00
Ryan McGrath
035dcdb264 Retweeting API is now supported in full - Twython3k is also up to date and on the same level as the Twython2k build. 2009-08-19 02:57:08 -04:00
Ryan McGrath
458dc6dc17 ReTweet API (POST) is supported by Twython (still waiting on Twitter to finish implementation, of course). All errors raised in Twython (related to Twython, of course) are now raised as 'TwythonError', essentially replacing the old 'TangoError' method. 2009-08-18 03:30:15 -04:00
Ryan McGrath
0d37e5be40 Added getHomeTimeline() support - this isn't a supported feature of the Twitter API just yet, but it's not bad to throw support for it in Twython now. (Twython3k will get an update soon that has this) 2009-08-14 03:42:42 -04:00