Skip to main content

Retrieve a unit card by user id

Service endpoint are subject to change

Method Description#

Return the requested asset providing the user id.

HTTP Request#

GET https://api.olyn.com/v1/unit-cards/?owner=

URL Parameters#

user_id required#

String

The owner of the unit card. Must be in the format of provider|id. For example, globalid|123abc

note

The user id format needs to be compliant with the one found in Unit Card object.

To see available Id-providers, see, ID Providers


Body Parameters#

none

Sample Code#

url = "http://api.olyn.com/v1/unit-cards/?owner=globalid|123abc"
response = requests.request("GET", url, headers=headers)
print(response.text)

Returns#

Returns a Unit Card object.

note

Returns an array of Unit Card objects if user has more than one unit card.