Acquires a DRM license for a video.
Try it now
Test
RAM authorization
Request syntax
POST /v2/file/video_drm_license HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| domain_id |
string |
Yes |
||
| body |
object |
No |
The request body. |
|
| drmType |
string |
Yes |
The DRM type. Valid values:
|
widevine |
| licenseRequest |
string |
No |
The license request payload. |
CAES6B8SQgpACioSENGxDhqCLIVwwCBOyPayyWoSENGxDhqCLIVwwCBOyPayyWpI88aJmwYQARoQdRV32 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| data |
string |
The DRM license. |
cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3 |
| states |
string |
The request status returned by the DRM server. |
0 |
| device_info |
string |
Information about the device that made the license request. |
"" |
Examples
Success response
JSON format
{
"data": "cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3",
"states": "0",
"device_info": "\"\""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.