Commit graph

745 commits

Author SHA1 Message Date
Mike Helmick
c3e84bc8ee Fixing streaming 2013-05-02 15:12:36 -04:00
Mike Helmick
e18bff97d3 Update HISTORY.rst 2013-04-29 14:30:30 -03:00
Mike Helmick
b6e820d792 Remove version.py for now
Was causing conflicts on pip install
2013-04-29 12:04:22 -04:00
Mike Helmick
32432bcac9 Update perms 2013-04-29 11:42:34 -04:00
Mike Helmick
f3d4a0d641 Merge pull request #183 from ryanmcgrath/python3-compat
Python 3 Compatibility
2013-04-29 08:27:43 -07:00
Mike Helmick
776e02b071 Updated AUTHORS, HISTORY; added ssl_verify; removed _media_update
- Added @jvanasco to the AUTHORS.rst
- Updated History
- Removed _media_update internal function
- Twython now takes ssl_verify param
2013-04-29 11:27:15 -04:00
Mike Helmick
a451db43c1 Removed bulkUserLookup & getProfileImageUrl, deprecating shortenUrl, raise TwythonDepWarnings in Python 2.7 > 2013-04-22 21:29:07 -04:00
Mike Helmick
d4c19fc3a9 Version bump 2013-04-19 02:14:22 -04:00
Mike Helmick
4ac6436901 Update Examples and LICENSE
Some examples were out of date (any trends example)
Renamed the core_examples dir. to examples
2013-04-18 22:27:50 -04:00
Mike Helmick
bb019d3a57 Making twython work (again?) in Python 3
- Added a ``HISTORY.rst`` to start tracking history of changes
- Updated ``twitter_endpoints.py`` to ``endpoints.py`` for cleanliness
- Removed twython3k directory, no longer needed
- Added ``compat.py`` for compatability with Python 2.6 and greater
- Added some ascii art, moved description of Twython and ``__author__`` to ``__init__.py``
- Added ``version.py`` to store the current Twython version, instead of repeating it twice -- it also had to go into it's own file because of dependencies of ``requests`` and ``requests-oauthlib``, install would fail because those libraries weren't installed yet (on fresh install of Twython)
- Removed ``find_packages()`` from ``setup.py``, only one package -- we can
just define it
- added quick publish method for Ryan and I: ``python setup.py publish`` is faster to type and easier to remember than ``python setup.py sdist upload``
- Removed ``base_url`` from ``endpoints.py`` because we're just repeating it in
``Twython.__init__``
- ``Twython.get_authentication_tokens()`` now takes ``callback_url`` argument rather than passing the ``callback_url`` through ``Twython.__init__``, ``callback_url`` is only used in the ``get_authentication_tokens`` method and nowhere else (kept in init though for backwards compatability)
- Updated README to better reflect current Twython codebase
- Added ``warnings.simplefilter('default')`` line in ``twython.py`` for Python 2.7 and greater to display Deprecation Warnings in console
- Added Deprecation Warnings for usage of ``twitter_token``, ``twitter_secret`` and ``callback_url`` in ``Twython.__init__``
- Headers now always include the User-Agent as Twython vXX unless User-Agent is overwritten
- Removed senseless TwythonError thrown if method is not GET or POST, who cares -- if the user passes something other than GET or POST just let Twitter return the error that they messed up
- Removed conversion to unicode of (int, bool) params passed to a requests. ``requests`` isn't greedy about variables that can't be converted to unicode anymore
2013-04-18 22:00:23 -04:00
Mike Helmick
8ecc55b5ad Merge pull request #180 from namimi/master
Comments correction for get_lastfunction_header()
2013-04-15 13:45:39 -07:00
Mike Helmick
80c74880b1 Update authors 2013-04-15 16:15:52 -04:00
Mike Helmick
561e4104fc Merge pull request #181 from ryanmcgrath/extract-exceptions
Move Exceptions to own file
2013-04-15 13:13:28 -07:00
Mike Helmick
6d1c439a89 Move Exceptions to own file 2013-04-15 16:12:02 -04:00
Adrien Tronche
023b29b202 Small correction in comments
Headers have changed and a - is now needed between rate and limit.
2013-04-14 00:16:28 -03:00
Mike Helmick
d228e04bc0 Version bump! 2013-04-12 11:40:05 -04:00
Mike Helmick
385a9b039b Merge pull request #179 from ryanmcgrath/fix-readme-authors
Move AUTHORS into their own file, fixes #176
2013-04-12 08:38:13 -07:00
Mike Helmick
969c0f5e72 Move AUTHORS into their own file
remove README md as well, see how the rst looks
2013-04-12 11:35:07 -04:00
Mike Helmick
7c34560f63 Merge pull request #178 from ryanmcgrath/fix-error-codes
Fixes #175, #177
2013-04-12 08:18:04 -07:00
Mike Helmick
7469f8bc73 Fixes #175, #177
* Auth Errors are thrown in the correct spots
* Error messages are a lot cleaner than before and correspond with
error codes on https://dev.twitter.com/docs/error-codes-responses
2013-04-12 11:17:40 -04:00
Mike Helmick
652893209e Merge pull request #173 from nofeet/master
Use built-in Exception attributes for storing & retrieving error message
2013-04-11 18:02:08 -07:00
Greg Nofi
12eb1610c8 Use built-in Exception attributes for storing and retrieving error message.
Keeping msg as a property so it's backwards compatible.

Note that this only fixes Python 2.x
2013-04-11 19:42:16 -04:00
Mike Helmick
8dfb076f11 Update authors 2013-04-10 23:08:43 -04:00
Mike Helmick
10dbe11b56 Version bump and update contributors! 2013-04-08 16:40:59 -04:00
Mike Helmick
2b0b26d3ed Merge pull request #165 from bkvirendra/patch-2
Update twython.py (Attribute error, unicode object detected)
2013-04-08 13:38:24 -07:00
Virendra Rajput
6a3539882c Update twython.py
if unicode object is detected, convert it to json using simplejson/json
2013-04-08 22:59:27 +05:30
Mike Helmick
4a181d3ac1 Version bump! 2013-04-08 11:51:34 -04:00
Mike Helmick
abaa3e558a oauth_verifier required, remove simplejson dependency, update endpoint
* Update `updateProfileBannerImage` to use the v1.1 endpoint

* Added `getProfileBannerSizes` method using the GET
/users/profile_banner.json endpoint

* Fixed a couple of endpoints using variable in the url:
  * destroyDirectMessage, createBlock, destroyBlock no longer use id in
their urls, this shouldn't break anything though.
(t.destroyDirectMessage(id=123) should still work)

* `oauth_verifier` is now **required** when calling
`get_authorized_tokens`

* Updated docs - removed getProfileImageUrl docs since it is
deprecated. Noted since `Twython` 2.7.0 that users should focus on
migrating to v1.1 endpoints since Twitter is deprecating v1 endpoints
in May!,
2013-04-08 11:49:12 -04:00
Mike Helmick
4d7526efc1 Merge pull request #162 from hansenrum/master
OAuth Verifier is now required for Authentication
2013-04-05 09:43:48 -07:00
hansenrum
1eb1bd080d moved oauth_verifier from init to method 2013-04-05 18:36:58 +02:00
hansenrum
26b3a232d0 oauth_verifier fix 2013-04-05 00:25:23 +02:00
Paul
99a6dccbce added oauth_verifier arg 2013-04-05 00:12:54 +02:00
Mike Helmick
918510ebc8 Merge pull request #161 from ryanmcgrath/fix-issues
Fixes #158, #159, #160; new endpoint
2013-04-04 11:53:47 -07:00
Mike Helmick
e65790d717 New showOwnedLists method
Returns the lists owned by the specified Twitter user. Private lists
will only be shown if the authenticated user is also the owner of the
lists.
2013-04-04 14:52:54 -04:00
Mike Helmick
fffedd4588 Version bump 2013-04-04 14:52:32 -04:00
Mike Helmick
7d1ffefc45 Fixes #158, #159, #160 2013-04-04 14:44:05 -04:00
Mike Helmick
a6afb2cf5c Version bump! 2013-03-31 12:38:07 -04:00
Mike Helmick
e1a7c24153 Merge pull request #156 from bkvirendra/patch-1
added the missing slash in "getMentionsTimeline"
2013-03-31 09:35:37 -07:00
Virendra Rajput
454a41fe94 added the missing slash in "getMentionsTimeline"
was unable to fetch mentions because of the missing slash and the missing '.json'
2013-03-31 21:23:16 +05:30
Mike Helmick
d6f3d731a2 Merge pull request #155 from michaelhelmick/update-endpoints
Update Twitter Endpoints & Internal Functions, 2.6.0 release
2013-03-21 07:20:55 -07:00
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
Ryan McGrath
dfca6c533e Merge pull request #141 from rmerlorangeknocks/master
Updating getRateLimiStatus endpoint
2013-02-15 08:20:58 -08:00
Ryan McGrath
2bbed505d5 Merge pull request #143 from gdevanla/update_error_code
Update error code to 429 - (to catch rate limit exceptions)
2013-02-15 08:18:06 -08:00
Ryan McGrath
b870d44f28 Merge pull request #149 from myusuf3/master
if you dont pass in header you asked for explicitly all are returned.
2013-02-15 08:16:30 -08:00
Ryan McGrath
d5c628f3b5 Merge pull request #147 from U2Ft/requests-1.1.0
Updated for requests 1.1.0
2013-02-15 08:15:35 -08: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
Mahdi Yusuf
b0f5af37d5 Update twython/twython.py
updating default version of api as well. come on playa.
2013-02-05 16:53:47 -05:00
Mahdi Yusuf
dbf2a461b8 Update twython/twython.py
making it so that when you don't pass in header you get all of them back.
2013-02-05 16:18:56 -05:00
Sam Mellor
f0db93c59e updated for requests==1.1.0 2013-01-30 01:00:32 +11:00
Guru Devanla
a28febb0b4 update error code and comment 2013-01-15 16:43:50 -06:00