| Home | Trees | Indices | Help |
|
|---|
|
|
Version: $Revision: 0 $
|
|||
|
EchoNestAPIError Generic API errors. |
|||
|
EchoNestAPIKeyError An Error returned by the API regarding the API Key. |
|||
|
EchoNestAPIThingIDError An Error returned by the API regarding the ThingID. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
SUCCESS_STATUS_CODES =
|
|||
FAILURE_THING_ID_STATUS_CODES =
|
|||
FAILURE_API_KEY_STATUS_CODES =
|
|||
|
|||
|
Attempt to replace postMultipart() with nearly-identical interface. (The files tuple no longer requires the filename, and we only return the response body.) Uses the urllib2_file.py originally from http://fabien.seisen.org which was also drawn heavily from http://code.activestate.com/recipes/146306/ . This urllib2_file.py is more desirable because of the chunked uploading from a file pointer (no need to read entire file into memory) and the ability to work from behind a proxy (due to its basis on urllib2). |
Adapted from http://code.activestate.com/recipes/146306/ . Post fields and files to an http host as multipart/form-data. fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return the server's response page. |
Adapted from http://code.activestate.com/recipes/146306/ . fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Mar 22 19:52:19 2009 | http://epydoc.sourceforge.net |