Method for checking if the next device is allowed to access the content in a concurrent access situation.
Parameters
Name | Type | Description |
---|---|---|
publisherToken* | string | You can find your publisher token on api-keys page. |
customerToken* | string | The token that identifies the customer, read more here. |
deviceId* | string | A unique deviceId. It can be an IP address. |
contentGroup | string | A unique content group identifier in the context of which concurrent access will be verified. If a parameter is not provided, global devices pool is verified. |
Result Parameters
Name | Type | Description |
---|---|---|
allowed | boolean | true/false Information about concurrent access right |
expiresAt | integer | The expiration time for access to the content. The value says when it will be possible to access content from the next concurrent device. This information can be used in the customer App to inform the user. |
API Request/Response
Request
{
"method": "verifyConcurrentAccess",
"params": {
"publisherToken": "CybqkiTFp4gTKYvuBImBXzn86yMo8VY4fyZNdl-CfFhxGDw9",
"customerToken" : "Ilrx-SjTLVMCsaRsOf2q2hvWKOlrF57yHknDRRRMX-13Fz-x",
"deviceId": "example1",
"contentGroup": "example"
},
"jsonrpc": "2.0",
"id": 1
}
Response
{
"result": {
"expiresAt": 1622224217,
"isAllowed": true
},
"id": "1",
"jsonrpc": "2.0"
}
Error Codes
Code | Description |
---|---|
3 | Invalid publisher token |
1 | Invalid customer token |