Mendeley/mendeley-oapi-example — pull request #10 by graphman65 (2012-08-23 13:33:15+00:00)
Title: Replaced Httplib with requests

Replaced httplib for all api calls to use requests as it's a cleaner
api and is easier to use.

* Changed MendeleyRemoteMethod.__call__ to return the response on error
instead of json only to be able to check the status code
* Added the "expected_status" property in apidefinitions for calls
that don't contain information about success or failure in the
body (delete for now)
* Changed MendeleyRemoteMethod.__call__ to verify that the returned status
code if the method as an "expected_status" value != 200, returns boolean
* Added a helper function in MendeleyClient to upload files easily
* Added a unit test for pdf upload in test-basics.py and cleanup its
setUpClass
* Removed example usage from mendeley_client.py as it's not up to date