Dynamic requests #72

Merged
michaelhelmick merged 7 commits from dynamic_requests into master 2012-04-09 18:00:20 -07:00

7 commits

Author SHA1 Message Date
Michael Helmick
813626a9ad Maybe the twitter_http_status_codes were a good idea. :P
I still think it's weird to have them, but I'm not against giving the
user more information. I put back in the twitter_http_status_codes
variable, but I changed where the logic was being handled, instead of
it happening the in _request, it will be asserted in Twython error if
an error_code is passed AND the error_code is in
twitter_http_status_codes
2012-04-09 10:59:13 -04:00
Michael Helmick
eb22296e33 Merged dynamic_requests with recent pull request additions
* Removed twitter_http_status_codes. Unnecessary variable when we are
giving them the error back.

* Added a "Please see..." message to TwythonError if the exception
passes an error code, linking to Twitter API error response page.

* Merged stuff from constructFunc into _request()
2012-04-09 10:49:44 -04:00
Michael Helmick
7205aa402a Get rid of print 2012-04-06 14:19:46 -04:00
Michael Helmick
703012ef29 Use simplejson if they have it first, allow for version passing in generic requests, catch json decoding errors and status code errors
* Changed the importing order for simplejson, if they have the library
installed, chances are they're going to want to use that over Python
json, json is slower than simplejson

* Version passing is now avaliable

* Catching json decode errors (ValueError) and Twitter Errors on
`_request` method and returning content rather than the response object.
2012-04-06 11:44:30 -04:00
Michael Helmick
0fcd4202c8 Whoops.. didn't mean to give those out. Haha. 2012-03-31 20:18:12 -04:00
Michael Helmick
cf38c7c3de POSTing works again, somehow it broke... :/ 2012-03-31 20:16:30 -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