UserDetails¶
-
class
saxo_openapi.endpoints.portfolio.users.
UserDetails
(UserKey)¶ Get the details about a user.
-
ENDPOINT
= 'openapi/port/v1/users/{UserKey}'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(UserKey)¶ Instantiate a UserDetails request.
Parameters: UserKey (string (required)) – the UserKey >>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> UserKey = '...' >>> r = pf.users.Users(UserKey=UserKey) >>> client.request(r) >>> print(json.dumps(r.response, indent=4))
Output:
{ "ClientKey": "Cf4xZWiYL6W1nMKpygBLLA==", "Culture": "en-GB", "Language": "en", "LastLoginStatus": "Successful", "LastLoginTime": "2019-03-05T13:22:22.123000Z", "LegalAssetTypes": [ "FxSpot", "FxForwards", "FxVanillaOption", "FxKnockInOption", "FxKnockOutOption", "FxOneTouchOption", "FxNoTouchOption" ], "MarketDataViaOpenApiTermsAccepted": false, "Name": "F. Brekeveld", "TimeZoneId": 26, "UserId": "9226397", "UserKey": "Cf4xZWiYL6W1nMKpygBLLA==" }
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-