Echo

class saxo_openapi.endpoints.rootservices.diagnostics.Echo

Send a any request and get a 200 OK response with verb, url, headers and body in the response body.

ENDPOINT = 'openapi/root/v1/diagnostics/echo/'
EXPECTED_STATUS = 200
METHOD = 'GET'
RESPONSE_DATA = None
__init__()

Instantiate an Echo request.

>>> import saxo_openapi
>>> import saxo_openapi.endpoints.rootservices as rs
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> r = rs.diagnostics.Echo()
>>> rv = client.request(r)
>>> assert r.status_code == r.expected_status

No data is returned.

expected_status
response

response - get the response of the request.

status_code