Commit graph

  • c6b1232abd Added callback_url parameter to Twython to set the URL the remote site will use to return the request token. Erik Scheffers 2011-01-18 15:14:11 +01:00
  • e5bef0f8e4 Fix header passing, fix isListSubscriber call never firing a request Ryan McGrath 2011-01-18 03:01:50 -05:00
  • b225918165 TwythonError should go off of AttributeError instead Ryan McGrath 2011-01-18 01:43:41 -05:00
  • 7ac349bca4 Merge branch 'master' of git@github.com:ryanmcgrath/twython Ryan McGrath 2011-01-18 01:34:55 -05:00
  • d5c34779d9 Woah, how the hell did we never notice this before? Set headers on the instance, not as a generic variable... Ryan McGrath 2011-01-17 19:50:39 -05:00
  • 90cba31922 Some parameters that need substituting (e.g. addListMember) contain underscores. These weren't matched by the regex, so I've added an underscore to the character group. addListMember now works. Alexander Dutton 2011-01-08 08:06:10 +08:00
  • 713cf347da Some parameters that need substituting (e.g. addListMember) contain underscores. These weren't matched by the regex, so I've added an underscore to the character group. addListMember now works. Alexander Dutton 2011-01-07 16:06:10 -08:00
  • 435294e004 Fix username parameter bug Ryan McGrath 2010-12-13 14:28:23 +09:00
  • 4b2a406b35 Fix for searchTwitterGen search_query parameter, spotted (again) by Jacob Silterra Ryan McGrath 2010-12-13 14:26:49 +09:00
  • 8ecdaa5bfa Fix a shortenURL reference bug pointed out by Jacob, incremental release of latest bugfixes because Pypi's been down recently Ryan McGrath 2010-12-12 14:45:03 +09:00
  • ace1a87745 Merge branch 'bsn-master' Ryan McGrath 2010-12-08 19:43:48 +09:00
  • 9133d0f10e ability to send tweets containing unicode characters like cyrillic word 'тест' Eugen Pyvovarov 2010-12-08 02:39:06 -08:00
  • 931921be01 Fix for issue #25, certain search queries not being properly encoded. Thanks to momander for pointing this out... Ryan McGrath 2010-11-28 17:56:11 +09:00
  • 5f1d0d4e90 verify credentials and return userinfo Eugen Pyvovarov 2010-11-10 08:27:21 -08:00
  • a13539884d in get method we use *kwargs, that's why we need to provide named arguments to the function Eugen Pyvovarov 2010-11-10 07:33:10 -08:00
  • 0407742fd8 Moved twython-django to be a submodule, better references everything this way (no need to ship useless, bloated code with a release). Twython 1.3.5 will not ship with the extra Django code, as it's now in its own separate repository (this is better, email if you have questions, happy to answer). Ryan McGrath 2010-11-07 02:20:56 -05:00
  • 2122f6528d Minor Streaming work; not official, just hackery for fun. Fork and patch or look away. Ryan McGrath 2010-11-07 02:18:24 -05:00
  • ed14371d38 Version bump for bug fixes release (1.3.3 => 1.3.4) Ryan McGrath 2010-10-29 00:32:19 -04:00
  • 969a1b3578 Fix for issue #22 (searchTwitter failing due to args specification); searchTwitter/searchTwitterGen now default to enforcing UTF-8 conversion, constructApiURL calls fixed, guess_mime_type() function consolidated/removed, bump to version 1.3.4 for small release with bug fixes Ryan McGrath 2010-10-29 00:31:27 -04:00
  • f9fc3b4a7c Fix years Ryan McGrath 2010-10-22 12:43:50 -04:00
  • 3b9527ae69 Fix constructApiURL method, version increment to fix function definitions in new versions Ryan McGrath 2010-10-20 11:22:31 -04:00
  • 3cef1a463f Redid some examples, moved examples to core_examples to differentiate from oauth_django_example, version bump to 1.3.2 to fix distribution errors with Pip/etc (dumb binaries were being created earlier, just throwing out the source now and letting pip handle it) Ryan McGrath 2010-10-19 16:31:09 -04:00
  • 25eda807ab Oh yeah, forgot to strip these... Ryan McGrath 2010-10-17 01:44:49 -04:00
  • 95fb03d80c Removing useless files Ryan McGrath 2010-10-16 23:43:55 -04:00
  • 9c94da4031 Fix one final piece Ryan McGrath 2010-10-16 23:40:24 -04:00
  • 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. Ryan McGrath 2010-10-16 23:37:47 -04:00
  • 7ccf8a2baf Bump version slightly Ryan McGrath 2010-10-14 10:31:53 -04:00
  • 3f0d64fb3b Merge branch 'master' of git@github.com:ryanmcgrath/twython Ryan McGrath 2010-10-14 10:11:31 -04:00
  • ff46a85e13 Fixing a bug in the 3k build per request from bsavas Ryan McGrath 2010-10-14 10:11:03 -04:00
  • 2a5d668801 Added a missing parameter to addListMember Mark Liu 2010-09-11 07:12:23 +08:00
  • 956af1952b Added a missing parameter to addListMember Mark Liu 2010-09-10 18:12:23 -05:00
  • e9aaaa7c39 Added a method to return a generator based in Twitter search API. Juan Jose Conti 2010-08-24 09:52:09 +08:00
  • 3580ee22b5 Don't need to include setuptools, heh. Randall Degges 2010-08-17 17:09:52 +08:00
  • c2f87f736c Adding some more PEP-8. Randall Degges 2010-08-17 16:59:34 +08:00
  • a8ae71fd75 Adding a bit more PEP-8. Randall Degges 2010-08-17 16:54:47 +08:00
  • d5b2c98fb8 PEP-8'ing imports. Also removing useless docstring. Randall Degges 2010-08-17 16:47:59 +08:00
  • fb6d549eed Adding blocking for vim swap files. Randall Degges 2010-08-17 16:45:51 +08:00
  • 9f7e1fa121 Adding a proper MANIFEST.in to the project. Randall Degges 2010-08-17 16:40:10 +08:00
  • d9fcd3a264 Fixing setup.py script to use valid setuptools format. Randall Degges 2010-08-17 16:37:43 +08:00
  • d630e02b6e Fixing and closing issue #15 by ebertti - getFollowersStatus() fails when only checking with ID, needs proper query string stuff. Ryan McGrath 2010-08-16 02:32:55 -07:00
  • 7dbbd954b2 Changing verifyCredentials to not auto-fire on class instantiation. No need to waste network resources; if anybody *wants* to verify credentials from this point onwards, you need to explicitly call instance.verifyCredentials(). This'll help with the upcoming change from Basic Auth... Ryan McGrath 2010-05-11 01:19:17 -04:00
  • fc6b9e1362 Updating Trends API to reflect new endpoints. Ryan McGrath 2010-04-23 00:26:57 -04:00
  • ab2dd1e2f0 Fixing createFriendship parameter passing - never needed the question mark. How did this sit for so long? Ryan McGrath 2010-04-10 01:06:37 -04:00
  • fe59e56361 Added a new bulkUserLookup() method. Takes two optional arrays of user_ids or screen_names and returns data from Twitter concerning all the users in question. (e.g, lol.bulkUserLookup(user_ids=[1,2,3], screen_names=["danmcgrath", "enotionz", "shiftb"])" Ryan McGrath 2010-03-17 03:19:41 -04:00
  • 8bea592d97 Increment version number to 1.2; fixed a bug in updateProfileColors() wherein multiple values wouldn't get properly concatenated/url-encoded. Changed getRateLimitStatus() to accept a boolean of 'checkRequestingIP', which should hopefully make the method a little more clear for debugging purposes. Ryan McGrath 2010-02-25 02:14:14 -05:00
  • 30fbacb066 Merging in a changeset to fix updateProfileColors() to use a proper POST method, instead of using a GET (thanks to Pedro Varangot for the submitted patch) Ryan McGrath 2010-02-22 23:03:30 -05:00
  • 844c1ae235 Removing redundant code block Ryan McGrath 2010-02-10 18:51:58 -05:00
  • 3f5fceb38b Merging recent changes over to the Twython3k build Ryan McGrath 2010-01-14 00:48:30 -05:00
  • 08c0200020 Fix for destroyStatus() method returning consistent 404's - properly initiate POST, fix url to reference properly, always require string instead of number for tweet id Ryan McGrath 2010-01-10 15:28:46 -05:00
  • 0e878ce75d Don't pass odd null parameters for updateStatus(), Twitter has seemingly decided to barf on them Ryan McGrath 2010-01-02 06:06:20 -05:00
  • a1bd6bfb85 Don't auto-kill at the 140 limit, as other languages apparently treat this differently. Leave it up to the programmer to determine length issues, I guess. Ryan McGrath 2009-12-30 03:27:59 -05:00
  • 25f68b2608 getListMembers() needs to always pass the id Ryan McGrath 2009-12-22 04:06:33 -05:00
  • cf20f2975a Typo'd follow in a param specification, fixing... Ryan McGrath 2009-12-21 22:43:11 -05:00
  • 68ac67e85d Documented the new proxy use/authentication methods (see the setup() method) Ryan McGrath 2009-12-21 03:04:46 -05:00
  • 221b337798 Properly instantiating an instance of twython.core in the README example Ryan McGrath 2009-12-17 03:30:34 -05:00
  • c40b6a6ebe import oauth as oauth to avoid namespacing conflicts in builds; setup.py now properly includes all necessary modules, fixes build problems people reported Ryan McGrath 2009-12-17 03:27:23 -05:00
  • 850c1011d1 Breaking down package structure a bit more Ryan McGrath 2009-12-17 03:19:42 -05:00
  • 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 Ryan McGrath 2009-12-17 03:05:39 -05:00
  • fc5aaebda3 Removing more useless build cruft Ryan McGrath 2009-12-17 02:34:56 -05:00
  • d1c579af31 Rearranging Twython to be a proper package structure Ryan McGrath 2009-12-17 02:14:44 -05:00
  • 2ae4bdde93 Cleaning up useless junk, this'll return at some point Ryan McGrath 2009-12-17 02:11:52 -05:00
  • 00246ff4ec Cleaning old builds... Ryan McGrath 2009-12-17 02:06:10 -05:00
  • 0b552d4d0e Changing simplejson requirement notice (Python 2.6 doesn't need it) Ryan McGrath 2009-12-17 01:58:28 -05:00
  • cdba60ecca Adding installation notes to README, thanks to a note from Idris (that I, sadly, missed for the longest time) Ryan McGrath 2009-12-17 01:57:15 -05:00
  • f74aae38a9 Adding installation notes to README, thanks to a note from Idris (that I, sadly, missed for the longest time) Ryan McGrath 2009-12-17 01:56:48 -05:00
  • c0370abed6 Adding installation notes to README, thanks to a note from Idris (that I, sadly, missed for the longest time) Ryan McGrath 2009-12-17 01:55:12 -05:00
  • 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. Ryan McGrath 2009-12-10 03:14:33 -05:00
  • 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. Ryan McGrath 2009-12-10 03:12:24 -05:00
  • 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) Ryan McGrath 2009-11-23 22:09:30 -05:00
  • 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) Ryan McGrath 2009-11-23 22:03:21 -05:00
  • d37f91ce8e Accidentally commited a changeset in the last push that stripped out all the import statements. Needless to say, this was bad - fixed now. Ryan McGrath 2009-11-20 04:19:43 -05:00
  • 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. Ryan McGrath 2009-11-20 04:16:42 -05:00
  • 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. ;) Ryan McGrath 2009-11-18 04:55:54 -05:00
  • 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... Ryan McGrath 2009-11-04 04:12:51 -05:00
  • 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. Ryan McGrath 2009-10-19 06:32:51 -04:00
  • 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. ;) Ryan McGrath 2009-10-16 03:01:28 -04:00
  • 09cce11143 oops my bad. fixed the examples properly this time idris 2009-10-11 17:18:44 -04:00
  • 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 Ryan McGrath 2009-10-10 17:22:29 -04:00
  • 46c93f4adb A stub for further work on Streaming API integration - nothing to see here yet, move along... Ryan McGrath 2009-10-05 02:07:03 -04:00
  • 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() Ryan McGrath 2009-09-29 02:58:20 -04:00
  • 44de246cde Simple Django app skeleton for OAuth testing; currently doesn't do anything special, just wanted it in the repo for testing purposes. Ryan McGrath 2009-09-24 04:05:38 -04:00
  • df38e3312a Skeleton for a basic OAuth example, using Django. (Currently not functioning, just wanted it in the repo) Ryan McGrath 2009-09-24 04:04:10 -04:00
  • 9007722c23 Fixed AuthError issue (#8 in the issue tracker) - AuthError was being passed one argument too many... Ryan McGrath 2009-09-21 23:32:15 -04:00
  • 93ea27f1b3 Fix for issue #7 (filed by kumar303), wherein setup.py reads the wrong README file for description purposes Ryan McGrath 2009-09-20 13:09:37 -04:00
  • f6e655eb6d Minor README updates Ryan McGrath 2009-09-17 02:00:35 -04:00
  • c0eb101dd3 Merge branch 'master' of git@github.com:ryanmcgrath/twython Ryan McGrath 2009-09-17 01:58:40 -04:00
  • d7d099b52d Moving README to Markdown Ryan McGrath 2009-09-17 01:58:23 -04:00
  • 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. jlin 2009-09-13 19:35:45 -04:00
  • 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... Ryan McGrath 2009-09-11 02:32:17 -04:00
  • 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 Ryan McGrath 2009-09-06 15:48:58 -04:00
  • 34340248de Porting various things over to the Twython3k build - purely experimental, as usual Ryan McGrath 2009-09-05 01:50:30 -04:00
  • 69fd3cc7db Check for whether or not we can load simplejson from django.utils as a last ditch effort in import statements Ryan McGrath 2009-09-04 00:36:36 -04:00
  • 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 ;) Ryan McGrath 2009-09-04 00:33:57 -04:00
  • b54782c744 Including a version (1.0) of oauth.py for Twython experiments. Override at your own discretion/risk. :D Ryan McGrath 2009-09-04 00:21:00 -04:00
  • f7df3c3bae Some very experimental, probably not working yet, OAuth related pieces. Heavily inspired by henriklied's 'django-twitter-oauth' work. Ryan McGrath 2009-09-04 00:16:52 -04:00
  • 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. ;) Ryan McGrath 2009-09-02 01:16:20 -04:00
  • 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. ;) Ryan McGrath 2009-09-01 02:11:46 -04:00
  • 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. Ryan McGrath 2009-08-31 02:15:57 -04:00
  • 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. Ryan McGrath 2009-08-29 01:30:27 -04:00
  • 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... Ryan McGrath 2009-08-28 02:53:48 -04:00