Post¶
-
class
saxo_openapi.endpoints.rootservices.diagnostics.Post¶ Send a POST request and get a 200 OK response back.
-
ENDPOINT= 'openapi/root/v1/diagnostics/post/'¶
-
EXPECTED_STATUS= 200¶
-
METHOD= 'POST'¶
-
RESPONSE_DATA= None¶
-
__init__()¶ Instantiate a Post request.
>>> import saxo_openapi >>> import saxo_openapi.endpoints.rootservices as rs >>> import json >>> client = saxo_openapi.API(access_token=...) >>> r = rs.diagnostics.Post() >>> 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¶
-