Commit graph

116 commits

Author SHA1 Message Date
Mike Helmick
a172136f3e Update Twitter Endpoints & Internal Functions
* Twitter Endpoints are now in the order of
https://dev.twitter.com/docs/api/1.1

* No need to repeat search function internally when it is available via
`twitter_endpoints.py`

* Make `searchGen` use self.search, instead of self.get with the full
search url
2013-03-20 23:24:26 -04:00
Sam Mellor
9bda75b520 Allow versions of requests between 1.0.0 and 2.0.0
Requests is semantically versioned, so minor version changes are expected to be compatible.
2013-02-07 22:20:35 +11:00
Sam Mellor
f0db93c59e updated for requests==1.1.0 2013-01-30 01:00:32 +11:00
Ryan McGrath
87a3b44a30 Bump to 2.5.5 2013-01-01 20:47:02 -05:00
Ryan McGrath
2d3d5b5b68 Bump to 2.5.4 2012-12-14 07:13:28 -05:00
Ryan McGrath
34e9474b91 Version bump 2012-12-01 01:34:38 -05:00
Ryan McGrath
a125ad6048 Version bump 2012-11-10 20:16:34 -05:00
Mike Helmick
b8084905d3 requests==0.14.0 requirement
Requests needs to be on 0.14.0, otherwise calls with params and files will not work.
2012-11-09 10:30:37 -05:00
Ryan McGrath
b6c5dc5a48 Merged chbrown's patch to use 1.1 for default versioning endpoints; bumped to 2.5.1 2012-11-09 04:42:02 -05:00
Mike Helmick
4e86da4aec Posts with files and params works with requests 0.14.0
#122
2012-10-29 12:36:45 -04:00
Mike Helmick
5a516c2bfb Version bump 2012-10-10 12:55:35 -04:00
Mike Helmick
8e72adead2 Version bump since new endpoint added, update requests version 2012-08-31 14:22:48 -04:00
Mike Helmick
9e5a96655d 2.3.4 release, requires requests 0.13.4 >, basically we don't have to url encode params anymore and can just pass a dict of params to the request (finally! :D) 2012-07-27 12:10:36 -04:00
Ryan McGrath
e1c4035a63 Version bump for bug-fix rollout 2012-07-25 03:56:12 +09:00
Ryan McGrath
0bcc15ecf3 2.3.2, latest @michaelhelmick fixes 2012-06-30 01:55:30 +09:00
Mike Helmick
d864376816 Code cleanup, Update requests version
* No sense in setting self.auth twice
* Make self.client a requests.session to reuse headers and auth
* requests 0.13.2 dependency isn't needed, but doesn't hurt
2012-06-29 12:19:37 -04:00
Ryan McGrath
73a1910066 Version bump for 2.3.1 release 2012-06-30 00:52:40 +09:00
Ryan McGrath
068c504030 Merge branch 'requests_image_posting' (Pull Request #91)
- Fixes for README
- Re-added a bulkUserLookup method that warns for deprecation
- Merged in @michaelhelmick's work on media and oauth2 deprecation

Conflicts:
	setup.py
	twython/twython.py
2012-06-25 05:02:57 +09:00
Mike Helmick
072a257a1f 2.2.0 2012-05-30 11:35:30 -03:00
Mike Helmick
0b3f36f9b6 Need to at least have requests 0.13.0 2012-05-30 11:35:03 -03:00
Ryan McGrath
0d00ae97fb 2.0.1 release, fixes auth error 2012-05-23 18:49:08 +09:00
Michael Helmick
f2cd0d5284 2.1.0 release
* README.rst, kind of tried to clean up docs with more examples
* No longer need oauth2 lib 👍
2012-05-16 11:59:47 -04:00
Michael Helmick
2f80933cb8 Get rid of requests-oauth and a bunch of other schtuff 2012-05-14 11:12:23 -04:00
Ryan McGrath
59c723ed7e Merge branch 'method_cleanups' from @michaelhelmick
Addresses most changes and issues with Twitter Spring cleanup 2012. Documentation
update on methods, started move to docs in RST format. Exceptions set to eventually
be deprecated (along with search functions).

Conflicts:
	twython/twython.py
2012-05-14 00:42:19 +09:00
Michael Helmick
a42570b685 Trying to make this merge-able.
* We don't need RequestException anymore.

* I changed TwythonError to raise TwythonRateLimitError instead of
TwythonAPIError since TwythonRateLimitError is more verbose and in the
belief we should deprecate TwythonAPILimit and ultimately remove it in
2.0

* And I updated the version to 1.7.0 -- I feel like development as far
as versioning seems like it's going fast, but versioning is versioning
and I'm following Twitter's rhythm of versioning
<major>.<minor>.<bugfix>, minor changing when minor features or
significant fixes have been added. In this case, TwythonRateLimitError
should start being caught in place of TwythonAPILimit
2012-04-12 11:44:27 -04:00
Michael Helmick
03f3a22480 Dynamic Request Methods
Just in case Twitter releases something in their API and a developer
wants to implement it on their app, but we haven't gotten around to
putting it in Twython yet. :)
2012-03-31 18:12:07 -04: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
Michael Helmick
59b5733a86 Version Number 2012-03-21 15:27:13 -04: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
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
Ryan McGrath
eca965715e 1.4.6 release for bug fixes - upgrade, please 2012-01-15 14:07:04 -05: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
226f129edb Copy new endpoint to Twython3k, bump release 2011-10-27 02:32:28 +09:00
Ryan McGrath
d89b2735bb Version bump, fixes to the 3k build (courtesy of wescpy), decode all responses before JSON parsing, 1.4.4 release 2011-10-07 05:20:33 +09:00
Ryan McGrath
d6d8823dc2 Fixes an issue with incompatibility with newer versions of the SimpleGeo OAuth2 library; also fixes an issue with bulkUserLookup fixes not being up on Pypi (issue #37, thanks jmalina327) 2011-08-09 18:01:17 -04:00
Ryan McGrath
a6d524e79d Update to 1.4.2, catch for Python 2.5 where urlparse doesn't exist (specifically for Google App Engine, which is strangely still on 2.5 2011-03-30 22:38:07 +09:00
Ryan McGrath
9f8c04b0f2 Patch for Python 2.5; inspect.getargspec() doesn't return a named tuple pre-2.6, so catch on AttributeError and just check in the entire tuple. Increment to 1.4.1 and pushed to Pypi for the sake of 2.5 users. 2011-02-26 01:56:28 -05:00
Ryan McGrath
7f24324507 Updating to 1.4, pushing slew of changes up to Pypi (major thanks to Hades and eriks5 for their patches). 2011-02-26 01:14:21 -05:00
Erik Scheffers
e97ec7ea0a Added 'httplib2' as requirement 2011-02-26 14:04:35 +08:00
Ryan McGrath
8ecdaa5bfa Fix a shortenURL reference bug pointed out by Jacob, incremental release of latest bugfixes because Pypi's been down recently 2010-12-12 14:45:03 +09:00
Ryan McGrath
931921be01 Fix for issue #25, certain search queries not being properly encoded. Thanks to momander for pointing this out... 2010-11-28 17:56:11 +09:00
Ryan McGrath
ed14371d38 Version bump for bug fixes release (1.3.3 => 1.3.4) 2010-10-29 00:32:19 -04:00
Ryan McGrath
3b9527ae69 Fix constructApiURL method, version increment to fix function definitions in new versions 2010-10-20 11:22:31 -04:00
Ryan McGrath
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) 2010-10-19 16:31:09 -04:00
Ryan McGrath
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. 2010-10-16 23:37:47 -04:00
Ryan McGrath
7ccf8a2baf Bump version slightly 2010-10-14 10:31:53 -04:00
Randall Degges
3580ee22b5 Don't need to include setuptools, heh. 2010-08-18 14:36:18 +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
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