getAccessibleTags()


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.

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).

- required parameter

Response Parameters:

Name Type Description
tags array List of tags

Error Codes:

Code Description
1 Invalid customer token
3 Invalid publisher token
5 Access denied
11 Invalid arguments

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"
    }
]

Remember! you can always check it by yourself using API Console - getAccessibleTags()

Back to Customer API


We use cookies to ensure that we provide you the best service and website experience. Read our Cookie policy for more details.