Users
These API calls allow a logged in user to obtain information about which customers and products they have access to.
Get a list of customers to which a user is linked.
Body
userIdentityTokenstringRequiredExample:
A user token received on login to the single sign on system.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQproductstringOptionalExample:
Only list customers that have a certain product.
videostream_managerResponses
200
Success
application/json
default
Error
application/json
post
/list/customersPOST /v1/list/customers HTTP/1.1
Host: token.connect.sportradar.com
Content-Type: application/json
Accept: */*
Content-Length: 312
{
"userIdentityToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQ",
"product": "videostream_manager"
}{
"data": {
"customers": [
{
"customerId": 1,
"name": "Test Customer"
}
]
},
"meta": {
"code": 200,
"codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
"generationTime": 0.011604,
"time": "2018-06-05 23:43:41.227584",
"version": 1
}
}Get a list of products for a customer to which a user is linked.
Body
userIdentityTokenstringRequiredExample:
A user token received on login to the single sign on system.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQcustomerIdstring · numberRequiredExample:
The id of the customer.
456Responses
200
Success
application/json
default
Error
application/json
post
/list/productsPOST /v1/list/products HTTP/1.1
Host: token.connect.sportradar.com
Content-Type: application/json
Accept: */*
Content-Length: 297
{
"userIdentityToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuYXV0aDAuY29tLyIsImF1XCI6Imh0dHBzOi8vYXBpLmV4YW1wbGUuY29tL2NhbGFuZGFyL3YxLyIsInN1YiI6InVzcl8xMjMiLCJpYXQiOjE0NTg3ODU3OTYsImV4cCI6MTQ1ODg3MjE5Nn0.CA7eaHjIHz5NxeIJoFK9krqaeZrPLwmEmgI_XiQiIkQ",
"customerId": 456
}{
"data": {
"products": [
{
"code": "videostream_manager",
"name": "Videostream Manager",
"subProducts": [
{
"subProductId": 1,
"subProductName": "Sub product 1"
}
]
}
]
},
"meta": {
"code": 200,
"codeVersion": "d6cd1e2bd19e03a81132a23b2025920577f84e37",
"generationTime": 0.011604,
"time": "2018-06-05 23:43:41.227584",
"version": 1
}
}Was this helpful?