Commit graph

657 commits

Author SHA1 Message Date
Ryan McGrath
bd0bd2748c Updated docs to fix verbage and note PEP8 swapover for anyone who misses it 2013-05-04 20:33:11 -04:00
Mike Helmick
60b2e14bef Update READMEs, fixed streaming pkg error
Removed Twython 1.3 note from READMEs, explained dynamic function
arguments in another place

Fixed error that caused users to not be able to install 2.9.0
2013-05-04 20:15:02 -04:00
Mike Helmick
9aa557ac93 Merge pull request #188 from ryanmcgrath/pep8-functions
Update all endpoints in the api_table for PEP8 functions, examples, READMEs, etc
2013-05-04 16:48:02 -07:00
Mike Helmick
600f36c6ba Catch the four methods that won't get caught with our deprecation fix 2013-05-04 19:46:23 -04:00
Mike Helmick
498bd9e557 Update more old function names in README 2013-05-04 19:35:21 -04:00
Mike Helmick
828d355ad2 Update version 2013-05-04 19:29:55 -04:00
Mike Helmick
84e4c5fe13 Update all endpoints in the api_table, examples, READMEs
Also updated functions in twython.py to use pep8 functions instead of
camelCase functions
2013-05-04 19:28:47 -04:00
Mike Helmick
0e258fe1a1 Update HISTORY 2013-05-04 15:13:29 -04:00
Mike Helmick
b7d68c6136 requests_oauthlib==0.3.1, fixes #154 2013-05-04 15:12:21 -04:00
Mike Helmick
44936d5f09 Merge pull request #187 from ryanmcgrath/streaming
Fixing streaming, fixes #144
2013-05-04 12:05:12 -07:00
Mike Helmick
cea0852a42 Updating file structure and HISTORY.rst 2013-05-03 17:33:17 -04:00
Mike Helmick
97a33ce8dd Merge Handling into TwythonStreamer, update examples 2013-05-03 16:57:59 -04:00
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