Get all entitlements for an account
Request
A client application needs to know which content the signed-in account has entitlements for, so it can display content appropriately. For example:
Display a play button for content for which the account has entitlements.
Display a buy button for content for which the account does not have entitlements.
To get all the entitlements for the account the app is signed into, send a GET request to:
https://<host>:<port>/rmg/v1/user/entitlements
There is also an endpoint that only returns entitlements for content that can be played on the device that the client app is running on.
See Get all entitlements for content that can be played on the current device.
Headers
authorization
– bearer token that the client received at signonnv-tenant-id
– the tenant ID
Mandatory arguments
None
Other arguments
You can add query parameters for sorting, paging, limiting, and filtering the entitlements that are returned – see the RMG API documentation.
Response
A successful request returns an HTTP 200 status.
HTTP 200 successful response
{
"totalRecords": 0,
"resourceSet": [
{}
]
}
A bad request returns an HTTP 400 status.
If no entitlements were found, the request returns an HTTP 404 status.
See also
For full details of this API, see the RMG API documentation.