Skip to content

flywheel.rest

ApiException

Bases: Exception

__str__()

Custom error messages for exception

RESTClientObject

Bases: object

request(method, url, query_params=None, headers=None, body=None, post_params=None, _preload_content=True, _request_timeout=None)

Perform requests.

Parameters:

Name Type Description Default
method

http request method

required
url

http request url

required
query_params

query parameters in the url

None
headers

http request headers

None
body

request json body, for application/json

None
post_params

request post parameters, application/x-www-form-urlencoded and multipart/form-data

None
_preload_content

if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.

True
_request_timeout

timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

None

RESTResponse

Bases: IOBase

getheader(name, default=None)

Returns a given response header.

getheaders()

Returns a dictionary of the response headers.