Deprecated
JSON-RPC API is deprecated.
Returns the list of tags for which the customer has entitlements (access rights). Use the response of this method to allow playback of video content (or offers) that have matching tags.
Entitlement checks are used as a base for reporting. You can see the recommended approach to using the entitlement methods here.
Parameters
Name | Type | Description |
---|---|---|
publisherToken* | string | You can find your publisher token at api-keys page. |
customerToken* | string | Token that identifies the customer (see Must know about API). |
Result Parameters
Name | Type | Description |
---|---|---|
tags | array | List of tags |
API Request/Response
Request
{
"method":"getAccessibleTags",
"params":{
"publisherToken":"PpcZyAQbMF1yA33lcyv2OpYedaMDPtOB90sGGdxr9VDzYt",
"customerToken":"V4AliQtKrz8ggbf3KE7W62ysYw9F-ITFHoxlkiy574rcxWG4g"
},
"jsonrpc":"2.0",
"id":1
}
Response
{
"result":{
"tags":[
"live",
"vod"
]
},
"id":"1",
"error":null,
"jsonrpc":"2.0"
}
ErrorCodes
Code | Description |
---|---|
1 | Invalid customer token |
3 | Invalid publisher token |
5 | Access denied |
11 | Invalid arguments |