Return the versioned path to the API route
| Parameters: | |
|---|---|
| Returns: | The full url to use for the route and API version |
| Return type: | str |
Add a query argument to a URL
The query should be of the form “param1=what¶m2=ever”, i.e., no leading ‘?’. The new query data will be appended to any existing query string.
| Parameters: | |
|---|---|
| Returns: | The new URL with the query argument included |
| 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 JSON results of a GET request
For URLs that use offset/limit arguments, this command will fetch all results for the given 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