Commit graph

287 commits

Author SHA1 Message Date
Erik
ffb768d24d Fix adding callback_url for old style servers 2012-04-06 11:09:43 +02:00
Erik
f4c00ff996 If callback_url is not set, don't force it to 'oob' 2012-04-06 11:08:12 +02:00
Erik
e17b3ed877 Removed OAuth library callback_url detection code, as callback_url passing does not depend on that anymore. 2012-04-06 11:02:11 +02:00
Ryan McGrath
9153fdf41b Merge pull request #70 from michaelhelmick/master
Passing kwargs to function now works. Urgent bug fix.
2012-03-23 18:42:50 -07:00
Michael Helmick
23e529e167 Passing params through functions now work, bug fix version bump
For example:
Twython.getHomeTimeline(include_rts=True) was failing. Really sorry
about this. It is now fixed.
2012-03-23 15:46:19 -04:00
Ryan McGrath
861c05718d Merge pull request #69 from michaelhelmick/master
Dynamic callback url works again, PEP8 clean up
2012-03-21 12:43:16 -07:00
Michael Helmick
59b5733a86 Version Number 2012-03-21 15:27:13 -04:00
Michael Helmick
f917b6bfea PEP8 Clean up
A couple variables were wrong. Somewhere was using 'r' when 'request'
was the correct variable

Somewhere was using json.loads and not simplejson.loads
2012-03-21 15:25:25 -04:00
Michael Helmick
5eb7f29bff Dynamic Callback URL works again
Using POST to set dynamic callback_url decided to break within 3 hours
of testing it.. haha.
2012-03-21 15:19:27 -04:00
Ryan McGrath
8e26e568a6 README formatting 2012-03-21 19:37:37 +01:00
Ryan McGrath
87c1f1e71c README formatting 2012-03-21 19:36:33 +01:00
Ryan McGrath
16a70d0240 README formatting 2012-03-21 19:35:35 +01:00
Ryan McGrath
6d72b8aa33 Mmmm fix this...? 2012-03-21 19:34:32 +01:00
Ryan McGrath
e0c76501ba Note about new Streaming API stuff 2012-03-21 19:32:25 +01:00
Ryan McGrath
9deced8f8b v1.5.0 release
- requests is now the default url/http library, thanks to Mike Helmick
- Initial pass at a Streaming API is now included (Twython.stream()), due to how easy
    requests makes it. Would actually be sad if we *didn't* have this... thanks, Kenneth. >_>;
- Return of shortenURL, for people who may have relied on it before.
- Deleted streaming handler that existed before but never got implemented fully.
- Exceptions now prefixed with Twython, but brought back originals with a more verbose error directing
    people to new ones, deprecate fully in future.
- Twython3k now has an OAuth fix for callback_urls, though it still relies on httplib2. Thanks @jbouvier!
- Added a list of contributors to the README files, something which I should have done long ago. Thank you all.
2012-03-21 19:21:34 +01:00
Ryan McGrath
1a6852de54 Merge pull request #68 from michaelhelmick/master
Dynamic callback url, combo jbouvier/michaelhelmick.
2012-03-21 09:04:14 -07:00
Michael Helmick
9e8bc09121 Fixes #67
Dynamic callback url
2012-03-21 11:41:27 -04:00
Ryan McGrath
55b6396a60 Merge pull request #65 from michaelhelmick/implement_requests
Implement requests (BETA, report bugs if you find them please)
2012-03-18 06:56:35 -07:00
Michael Helmick
158bf77231 Remove httplib2 dependency, remove "shortenUrl" function, no need for urllib2 either
* Removed shortenUrl since Twitter ALWAYS shortens the URL to a t.co,
anyways.

* Since removing shortenUrl, no need for urllib2 anymore

* No need for httplib2 anymore, either
2012-03-08 12:24:03 -05:00
Michael Helmick
8630dc3f03 Twython using requests/requests-oauth 2012-03-08 12:20:04 -05:00
Michael Helmick
e3d9ed656b PEP8 Cleanup on Twitter Endpoints 2012-03-06 16:58:27 -05:00
Ryan McGrath
5cd1129098 Merge pull request #62 from michaelhelmick/pep8_and_verboseness
- Exceptions now prefixed with "Twython", change your code accordingly
- PEP8 Cleanup
- Removed unused libraries and dependencies
2012-03-03 16:48:50 -08:00
Michael Helmick
2f749183ab PEP8 Cleanup, More Verbosness
* Rid of a lot of libs not being used
* Changing Exceptions to prefix with "Twython", just safer in case
other apps have "AuthError", etc. for some reason.
2012-02-28 15:16:39 -05:00
Ryan McGrath
449a71daf8 Merge pull request #57 from LuqueDaniel/master
Extended example
2012-02-23 13:25:48 -08:00
Daniel
bb99c90f1a Extended example 2012-02-23 21:13:08 +01:00
Ryan McGrath
eca965715e 1.4.6 release for bug fixes - upgrade, please 2012-01-15 14:07:04 -05:00
Ryan McGrath
a4334bb67d Somewhat bring 3k up to par; currently way behind, will fix after finishing Requests merge 2012-01-15 14:06:37 -05:00
Ryan McGrath
fcbc702ae5 Fixes an issue in the 1.4.5 point release, first pointed out by @michaelhelmick, fixed thanks to "tatz_tsuchiya". 2012-01-15 13:59:28 -05:00
Ryan McGrath
ae5e63150b Merge pull request #56 from michaelhelmick/status_with_media
Generic _media_update() func., added func. to update status with a photo...
2012-01-14 05:27:56 -08:00
Michael Helmick
401f610be5 Generic _media_update() func., added func. to update status with a photo.
* Generic _media_update() func. for the 3 media api calls

* Added func. to update status with a photo. updateStatusWithMedia()
2012-01-13 16:25:52 -05:00
Ryan McGrath
b391d502c3 Merge pull request #55 from michaelhelmick/master
Uploading profile image and profile background image, update setup required packages, removed some funcs.
2012-01-12 21:03:20 -08:00
Michael Helmick
f9d87b6fd3 Left out 'python' in hashbang, update setup to use env, too.
Left out 'python' in hashbang, update setup to use env, too.
2012-01-12 23:16:36 -05:00
Michael Helmick
e54183df9c Uploading profile image and profile background image, update setup required packages, removed some funcs.
* You can now update user profile image or user profile background
image thanks to the Python requests library.

* Updated setup to include 'requests' as a required package

* Changed to beginning hashbang to use the users environment python
version

* try/except for parse_qsl, removed try/excepts where it used
cgi.parse_qsl/urlparse.parse_sql

* Lines 161/162 (using self.consumer/token) <- this addition ended up
not being needed, but it doesn't hurt.

* updateProfileBackgroundImage() - param 'tile' is now True/False
rather than a string "true" or string "false"

* removed encode_multipart_formdata func, not needed any longer
2012-01-12 22:37:50 -05:00
Ryan McGrath
efb0e74b38 Merge pull request #54 from mhameed/patches
Swap out the hilariously fun method_missing clone for a more debug-able version that registers endpoints directly, thanks to @mhameed. Should make life easier for people...
2012-01-08 14:50:43 -08:00
Mesar Hameed
fa90a298b9 Merge branch 'master' into patches 2011-12-19 20:40:33 +00:00
Mesar Hameed
262b7441d4 Get rid of __getattr__ since the endpoints are directly
registered into Twython by the constructor.
2011-12-19 20:39:21 +00:00
Ryan McGrath
fa1b581c0f Merge pull request #52 from decause/master
PEP8 Edits: Mostly cosmetic tweaks. Removed tabs, breaking lines longer than 80 chars, etc...
2011-12-17 16:35:00 -08:00
Remy D
cf5b382d55 PEP8 Edits: Removed Tabs, removed spaces around keywords, linebreaks in lines
longer than 80 chars
2011-12-07 14:26:02 -05:00
Remy D
fb8cefd823 PEP8 Edit: Removed Tab -> added 4 spaces 2011-12-07 14:24:23 -05:00
Remy D
9fcd14f3d1 PEP8 Edit: Removed Tab -> added 4 spaces 2011-12-07 14:23:22 -05:00
Remy D
709c8453ea PEP8 Edit: Removed Tab -> added 4 spaces 2011-12-07 14:22:15 -05:00
Mesar Hameed
4710c49b28 Allow for easier debugging/development, by registering endpoints directly into Twython3k. 2011-11-30 14:30:58 +00:00
Mesar Hameed
650a69ec17 Allow for easier debugging/development, by registering endpoints directly into Twython. 2011-11-24 16:02:06 +00:00
Ryan McGrath
d93651c486 Merge pull request #50 from mckellister/master
Handling rate limiting errors from search api
2011-11-10 14:10:17 -08:00
Kelly Slemko
4d4aa302d4 Modifying how error is constructed to make sure it calls init on the
super class
2011-11-09 15:39:02 -08:00
Kelly Slemko
f31446fa31 Added handling for rate limiting error from search api. Now throws
special exception which includes number of seconds to wait before trying
again.
2011-11-09 14:42:10 -08:00
Ryan McGrath
979da12c16 Merge pull request #48 from GunioRobot/clean
This was done by a bot combing the internets. Hilarious, why not...
2011-10-26 22:06:35 -07:00
Gun.io Whitespace Robot
8852e21dc6 Remove whitespace [Gun.io WhitespaceBot] 2011-10-26 21:00:35 -04:00
Ryan McGrath
226f129edb Copy new endpoint to Twython3k, bump release 2011-10-27 02:32:28 +09:00
Ryan McGrath
6ac19f62a0 Merge pull request #47 from coldclimate/master
Added endpoint for userLookup
2011-10-26 10:29:31 -07:00