Commit graph

669 commits

Author SHA1 Message Date
Ryan McGrath
ccc9ded28b Fixing a README typo 2009-07-23 23:59:13 -04:00
Ryan McGrath
9bd05aaab6 Tango now raises an APILimit error that should make catching API rate limit issues easier. More work was also done to fix the bad way that strings are concatenated, though this is still ongoing - this updates applies to both tango and tango3k. 2009-07-20 00:24:23 -04:00
Ryan McGrath
5236a85cda Update to tango3k that mirrors the recent changes in Tango master; all methods now raise TangoError() Exceptions when they hit snags, and there are various other changes, such as string concating that should hopefully be a bit faster. 2009-07-08 01:34:05 -04:00
Ryan McGrath
e642c117a4 All methods now raise tango exceptions; debug parameter is deprecated, header information is only reported back with HTTP code now 2009-07-08 01:27:57 -04:00
Ryan McGrath
b4f62e9420 Shortened constructApiURL() down to one line, and it's hopefully more efficient. searchTwitter() and some others now raise TangoError Exceptions when they hit a snag; entire library can hopefully be converted by the end of the week. Need to swap out string concatenation methods, as the method used in here is proven to be slower... could be a mess in larger applications. 2009-07-07 08:27:33 -04:00
Ryan McGrath
4a910f3b80 Added check for authentication in updateStatus(). Not sure why this was never there; ideally, I should replace all these is_autheticated calls at some point with a decorator. This commit also has a new TangoError Exception class, which updateStatus() will now raise. This should be spread throughout the library in the coming week, when I have a chance to hit these two issues. (Note: The Python 3 version of Tango will most likely incur a lag of a day or so this week, in terms of receiving updates. This will hopefully be made easier in the future... 2009-07-06 03:02:01 -04:00
Ryan McGrath
716fe69e60 Fixing issue pointed out by sk89q, wherein updateStatus() doesn't handle the in_reply_to_status_id parameter correctly. 2009-07-05 03:53:28 -04:00
Ryan McGrath
69f747a658 Updated search example; major thanks to Sai for pointing out that this was broken. 2009-07-03 03:04:47 -04:00
Ryan McGrath
76ca83cb87 Fixed credential verification with Basic (HTTP) Auth; previously, it assumed that passing in credentials meant you knew what you were doing. I take full blame for that act of idiocracy, but it's fixed now. 2009-07-02 03:56:24 -04:00
Ryan McGrath
b82f88c101 Added check for authentication if user is getting rate limit status for an authenticated user 2009-07-01 05:18:52 -04:00
Ryan McGrath
c69834935b Added check for authentication if user is getting rate limit status for an authenticated user 2009-07-01 05:18:48 -04:00
Ryan McGrath
ecee9a438a Example for checking rate limits 2009-07-01 05:16:22 -04:00
Ryan McGrath
860563b9f9 Removing useless pass methods 2009-06-27 01:53:04 -04:00
Ryan McGrath
f52e1415b8 Removing useless pass things 2009-06-27 01:52:18 -04:00
Ryan McGrath
3f049a79bb Experimental version of Tango for Python 3k 2009-06-25 02:17:06 -04:00
Ryan McGrath
0de4dc7383 Removing bad filename 2009-06-25 02:16:45 -04:00
Ryan McGrath
d8563c0a6d Experimental version of Tango for Python 3k 2009-06-25 02:16:10 -04:00
Ryan McGrath
f915891b1b A note about Tango3k 2009-06-25 02:14:33 -04:00
Ryan McGrath
e8660df23c An experimental version of Tango for Python 3k 2009-06-25 02:12:00 -04:00
Ryan McGrath
be6cc881f0 Added a small note... 2009-06-25 02:11:37 -04:00
Ryan McGrath
ea7b2e5cdc Fixing spacing 2009-06-25 01:51:17 -04:00
Ryan McGrath
174e0bc045 New README 2009-06-25 01:49:00 -04:00
Ryan McGrath
5f63187ca2 Simple example of updating a profile image 2009-06-25 01:24:49 -04:00
Ryan McGrath
102eac4d6e Fixed length checking in updateStatus(), removed debug lines from searchTwitter() 2009-06-20 01:42:23 -04:00
Ryan McGrath
d974321854 Finally got around to fixing the searchTwitter() function. It's now able to accept any and all parameters that correspond with Twitter's API; the final thing there should be allowing a user agent to be set, which still needs to be looked into. Shouldn't be too difficult. 2009-06-18 03:56:41 -04:00
Ryan McGrath
d85e3dbf28 Example of getting user mentions 2009-06-14 20:23:52 -04:00
Ryan McGrath
f0a27970f1 Removed needless id parameter 2009-06-14 20:17:48 -04:00
Ryan McGrath
3493047180 Examples of user timelines 2009-06-14 20:15:54 -04:00
Ryan McGrath
63cf9dba3a Fixed getUserTimeline(), as it was... way out of whack. Should now properly detect which method of identification is needed for the userTimeline scenario. 2009-06-14 20:14:32 -04:00
Ryan McGrath
b71dd218aa Example of getting the friends timeline 2009-06-14 19:31:24 -04:00
Ryan McGrath
4af7c8771f Examples of getting the public timeline 2009-06-14 19:09:04 -04:00
Ryan McGrath
480ba23011 A basic example on using Tango for URL shortening 2009-06-14 18:42:35 -04:00
Ryan McGrath
b2ba65cc45 An example showing how to update a status using basic authentication. 2009-06-14 04:09:27 -04:00
Ryan McGrath
e697d7206d An example showing the various ways to instantiate tango. 2009-06-14 04:07:51 -04:00
Ryan McGrath
b49cc2458d More examples for the Trends/Search API 2009-06-13 21:42:53 -04:00
Ryan McGrath
2fbb99c38d Current Trends example - very basic 2009-06-13 21:34:44 -04:00
Ryan McGrath
55b28c9184 Examples of various Tango scripts 2009-06-13 21:00:58 -04:00
Ryan McGrath
90d7e5ffb0 The final API method, Saved Searches. Fixed an issue with the Direct Message function where urllib.urlencode wasn't formed properly; only thing left for release is OAuth. 2009-06-08 02:54:53 -04:00
Ryan McGrath
9e1159dd6f Search API Methods, trending and regular search stuff. Cleaned up some more parts of the library. 2009-06-08 02:23:21 -04:00
Ryan McGrath
402a2dddc0 All methods now return a Python/JSON value depicting the data Twitter sends back 2009-06-08 01:26:32 -04:00
Ryan McGrath
5342fbccc6 The final REST API method, Direct Messages. Remaining targets are OAuth Authentication and the Search/Streaming APIs. 2009-06-06 22:32:21 -04:00
Ryan McGrath
4c13afd90a Added blocking methods, just a wee bit more to go... 2009-06-06 21:10:04 -04:00
Ryan McGrath
2aff3742e0 friendship() methods are now included. Just a bit more to go... 2009-06-06 19:00:22 -04:00
Ryan McGrath
3ec4805fd1 Annotating a TODO list 2009-06-04 02:38:11 -04:00
Ryan McGrath
833ad1ebe8 Added social graph methods, cleaned up notification methods, tired as all hell. 2009-06-03 03:51:55 -04:00
Ryan McGrath
23d3cca4fc Finished off the Account methods after a 3 hour session of figuring out multipart data in Python - this seriously needs to be part of the standard language. The only thing I've wished I had out of the box thus far. 2009-06-01 04:52:07 -04:00
Ryan McGrath
000d9993ee Methods for the notification API; cleaned up a lot of code, threw in more try/excepts to attempt error catching, moved certain lines behind the debug parameter 2009-06-01 00:55:46 -04:00
Ryan McGrath
4cf64e3f60 Added in methods for getting, creating, and destroying favorites 2009-06-01 00:02:47 -04:00
Ryan McGrath
4c4d1bd876 A rather large and ugly updateProfile() method, but it works. 2009-05-31 23:18:27 -04:00
Ryan McGrath
09b24fbb90 Support for ending open sessions 2009-05-31 19:57:56 -04:00