Commit graph

172 commits

Author SHA1 Message Date
Mark Liu
2a5d668801 Added a missing parameter to addListMember 2010-09-12 11:33:32 +08:00
Juan Jose Conti
e9aaaa7c39 Added a method to return a generator based in Twitter search API. 2010-08-24 11:22:03 +08:00
Randall Degges
3580ee22b5 Don't need to include setuptools, heh. 2010-08-18 14:36:18 +08:00
Randall Degges
c2f87f736c Adding some more PEP-8.
All lines should be at most 79 characters in length.
2010-08-18 14:36:18 +08:00
Randall Degges
a8ae71fd75 Adding a bit more PEP-8. 2010-08-18 14:36:01 +08:00
Randall Degges
d5b2c98fb8 PEP-8'ing imports. Also removing useless docstring.
Only the *first* docstring defined in a source file will be associated with
that module's __doc__ string. So I'm removing the second one that was there as
it is unnecessary.
2010-08-18 14:36:00 +08:00
Randall Degges
fb6d549eed Adding blocking for vim swap files. 2010-08-18 14:36:00 +08:00
Randall Degges
9f7e1fa121 Adding a proper MANIFEST.in to the project.
This file will instruct setuptools to package *all* important distribution
packages when the code gets uploaded to PyPI.
2010-08-18 14:36:00 +08:00
Randall Degges
d9fcd3a264 Fixing setup.py script to use valid setuptools format.
This will fix the broken pip / easy_install issues on many platforms (like
most linux distros).
2010-08-18 14:35:59 +08:00
Ryan McGrath
d630e02b6e Fixing and closing issue #15 by ebertti - getFollowersStatus() fails when only checking with ID, needs proper query string stuff. 2010-08-16 02:32:55 -07:00
Ryan McGrath
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... 2010-05-11 01:19:17 -04:00
Ryan McGrath
fc6b9e1362 Updating Trends API to reflect new endpoints. 2010-04-23 00:26:57 -04:00
Ryan McGrath
ab2dd1e2f0 Fixing createFriendship parameter passing - never needed the question mark. How did this sit for so long? 2010-04-10 01:06:37 -04:00
Ryan McGrath
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"])" 2010-03-17 03:19:41 -04:00
Ryan McGrath
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. 2010-02-25 02:14:14 -05:00
Ryan McGrath
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) 2010-02-22 23:03:30 -05:00
Ryan McGrath
844c1ae235 Removing redundant code block 2010-02-10 18:51:58 -05:00
Ryan McGrath
3f5fceb38b Merging recent changes over to the Twython3k build 2010-01-14 00:48:30 -05:00
Ryan McGrath
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 2010-01-10 15:28:46 -05:00
Ryan McGrath
0e878ce75d Don't pass odd null parameters for updateStatus(), Twitter has seemingly decided to barf on them 2010-01-02 06:06:20 -05:00
Ryan McGrath
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. 2009-12-30 03:27:59 -05:00
Ryan McGrath
25f68b2608 getListMembers() needs to always pass the id 2009-12-22 04:06:33 -05:00
Ryan McGrath
cf20f2975a Typo'd follow in a param specification, fixing... 2009-12-21 22:43:11 -05:00
Ryan McGrath
68ac67e85d Documented the new proxy use/authentication methods (see the setup() method) 2009-12-21 03:04:46 -05:00
Ryan McGrath
221b337798 Properly instantiating an instance of twython.core in the README example 2009-12-17 03:30:34 -05:00
Ryan McGrath
c40b6a6ebe import oauth as oauth to avoid namespacing conflicts in builds; setup.py now properly includes all necessary modules, fixes build problems people reported 2009-12-17 03:27:23 -05:00
Ryan McGrath
850c1011d1 Breaking down package structure a bit more 2009-12-17 03:19:42 -05:00
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