Ryan McGrath
d7d099b52d
Moving README to Markdown
2009-09-17 01:58:23 -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
Ryan McGrath
c62c41a45e
Alright, now import twython works as it should.
2009-08-06 02:57:02 -04:00
Ryan McGrath
adab94b240
There, *now* this build should be fixed.
2009-08-06 02:43:40 -04:00
Ryan McGrath
c0b56f33a7
Reorganizing structure, finally made the setup.py install function actually work - thanks to the guys in #python for their help.
2009-08-06 01:48:14 -04:00
Ryan McGrath
5ba7e99e6e
Some more work on OAuth, borrowing ideas from existing implementations - parsing of responses, etc. Feel free to critique/contribute.
2009-08-04 02:20:49 -04:00
Ryan McGrath
b0b345d013
Final 0.5 release fixes for packaging things...
2009-08-03 00:56:23 -04:00
Ryan McGrath
e070055816
Incremental release fixes...
2009-08-03 00:51:27 -04:00
Ryan McGrath
0a2d8456af
More package change info
2009-08-03 00:46:53 -04:00
Ryan McGrath
999adbe2ba
New build, representing 0.5 release - fixed bad indentation errors in Twython, small cleanup here and there
2009-08-03 00:46:26 -04:00
Ryan McGrath
3b22ff34ce
Properly porting files...
2009-08-03 00:45:29 -04:00
Ryan McGrath
fb41d4100c
Changing references to Tango
2009-08-03 00:38:59 -04:00
Ryan McGrath
cbfa71c286
Changing over to Twython, rolled back version number to aim for a more consistent release schedule - nowhere near a 1.0 release yet...
2009-08-03 00:36:08 -04:00
Ryan McGrath
983f8e3065
Huh, that indentation was off... backing out this comment for now
2009-08-01 15:34:39 -04:00
Ryan McGrath
f2101405e9
Merge branch 'master' of git@github.com:ryanmcgrath/tango
2009-07-31 03:31:32 -04:00
Ryan McGrath
4a86adb977
NOTICE: On 08/01/2009, Tango is going to be renamed to "Twython". In renaming the GitHub repo, most watchers/followers
...
will be lost, so please take note of this date if you wish to continue following development!
There should (hopefully) be no further disruptions after that. Eventually, I'll get around to creating a setup.py file
that works correctly. ;)
2009-07-31 03:31:08 -04:00
Ryan McGrath
0d086c5395
Name change, inserting a basic docstring to get the ball rolling
2009-07-29 13:47:25 -04:00
Ryan McGrath
0101d3b3e4
Fixing a bug wherein self.headers doesn't exist - reference headers arg instead
2009-07-29 12:54:33 -04:00
Ryan McGrath
91e03fe7ef
Updating version to 0.8.0.1, as showStatus() had a bug with authentication and needed to be pushed out
2009-07-29 00:10:34 -04:00
Ryan McGrath
c83a033765
Fixing a bug with authentication in showStatus() - previously it assumed that you were *always* authenticated
2009-07-29 00:08:26 -04:00
Ryan McGrath
6fe1a95a2e
Packaged versions galore... Need to figure out the best way to handle Tango3k soon - perhaps in a new branch? Is anyone even using it at the moment?
2009-07-28 23:31:15 -04:00
Ryan McGrath
932d29a1ab
Changed licensing, modified contents of setup.py to conform to what Pypi wants/needs
2009-07-28 23:22:52 -04:00
Ryan McGrath
1007688925
A somewhat working setup.py - still a work in progress
2009-07-28 23:00:43 -04:00
Ryan McGrath
95f3ff17f0
Licensing stuff
2009-07-28 03:24:12 -04:00
Ryan McGrath
f374ac3e61
Getting rid of cruft
2009-07-28 03:14:08 -04:00
Ryan McGrath
d7d170cc3b
Reorganizing into a more package based structure, setting an initial (not working) setup.py file - this will be expanded soon
2009-07-28 03:13:48 -04:00
Ryan McGrath
4fed1e241f
Tango now supports adding a unique User Agent, in keeping with Twitter's Search API requirements. See the Wiki for information on usage.
2009-07-28 02:52:35 -04:00
Ryan McGrath
8bf063fdf9
Specifying OAuth urls when user specifies OAuth style login
2009-07-27 03:13:15 -04:00
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