Return the versioned path to the API route
Parameters: | |
---|---|
Returns: | The full url to use for the route and API version |
Return type: | str |
Send a DELETE request to the url and return JSON response
Parameters: | |
---|---|
Returns: | The json response from the server |
Return type: | dict |
Download a file, saving it to the CWD with the included filename
Parameters: |
---|
Get the filename from the response header
Parameters: | response (Response) – The urllib3 response object |
---|---|
Raises : | RuntimeError if it cannot find a filename in the header |
Returns: | Filename from content-disposition header |
Return type: | str |
Return the JSON results of a GET request
Parameters: | |
---|---|
Returns: | The json response from the server |
Return type: | dict |
Return the raw results of a GET request
Parameters: | |
---|---|
Returns: | The raw response from the server |
Return type: | str |
POST raw data to the URL
Parameters: | |
---|---|
Returns: | The json response from the server |
Return type: | dict |
POST some JSON data to the URL
Parameters: | |
---|---|
Returns: | The json response from the server |
Return type: | dict |
Bases: httplib.HTTPConnection, object