RightsTokenGet()

This API is used to get a given RightsToken by a RightsTokenID and its associated AccountID.

API URL:

[BaseURL]/Account/{AccountID}/RightsToken/{RightsTokenID}

Request Method:

GET

Request Parameters:

Request Format

Headers:

Response Format

XML type:

Status Code:

Example

RightsTokenGet() using long URL

The following example fetches a RightsToken using the long URL

Sample Request:

GET /rest/2015/02/Account/urn:dece:accountid:org:dece:558A336305BF452AA60C27D459BBE06E/RightsToken/urn:dece:rightstokenid:org:dece:40937DF1EE70402EA3D7DBF10E618F9A HTTP/1.1
Host: api.uvvu.com
Accept: application/xml
Authorization: SAML2 assertion=[Assertion]

Sample Response:

HTTP/1.1 200
Date: [Date]
Content-Type: application/xml
X-transaction-info: [TransactionInfo]

<?xml version="1.0" encoding="UTF-8"?>
<RightsToken xmlns="http://www.decellc.org/schema/2015/03/coordinator" RightsTokenID="urn:dece:rightstokenid:org:dece:40937DF1EE70402EA3D7DBF10E618F9A">
  <RightsTokenInfo ALID="urn:dece:alid:org:dece:test:alid_with_sd_hd_uhd" ContentID="urn:dece:cid:org:dece:test:cid_with_en_de">
    <SoldAs>
      <DisplayName Language="en">Test Title</DisplayName>
      <ContentID>urn:dece:cid:org:dece:test:cid_with_en_de</ContentID>
      <ContentID>urn:dece:cid:org:dece:test:cid_with_en_de</ContentID>
    </SoldAs>
    <RightsProfiles>
      <PurchaseProfile MediaProfile="urn:dece:type:mediaprofile:sd">
        <CanDownload>true</CanDownload>
        <CanStream>true</CanStream>
      </PurchaseProfile>
      <PurchaseProfile MediaProfile="urn:dece:type:mediaprofile:hd">
        <CanDownload>true</CanDownload>
        <CanStream>true</CanStream>
      </PurchaseProfile>
      <PurchaseProfile MediaProfile="urn:dece:type:mediaprofile:uhd">
        <CanDownload>true</CanDownload>
        <CanStream>true</CanStream>
      </PurchaseProfile>
    </RightsProfiles>
    <ResourceStatus>
      <Current CreatedBy="urn:dece:org:org:dece:iot:falcon-a1:retailer" CreationDate="2017-06-22T17:22:12.242Z">
        <Value>urn:dece:type:status:active</Value>
      </Current>
    </ResourceStatus>
    <StreamWebLoc>
      <Location>https://example.com/p/streaminglink</Location>
    </StreamWebLoc>
  </RightsTokenInfo>
</RightsToken>

See Also