User Tools

Site Tools


api:iptv:drm:create

API : IPTV : DRM : Create

Introduction

This request will create a new DRM account. The account contains the credentials and license required by iOS/Android apps and web browser clients.

A customer with IPTVPRIVATE feature, can have 1 account which permits up to 4 devices.

A business customer with IPTVBUSINESS feature, can have multiple accounts which each permits up to 5 devices.

Request

URL https://api.telecomx.dk/iptv/drm
Method POST
Access level MANAGER or OWNER if customer has feature IPTVBUSINESS or IPTVPRIVATE
RESELLER if customer has IPTVBUSINESS or IPTVPRIVATE
ADMIN
Body customer Id Id of the customer to create the DRM account for.
username String Unique id and username, min 6 chars, only a-z A-Z 0-9 . _ - and @. Omit to create a random username.
password String Password, min 6 chars. Omit to create a random password.

Query example

{
  customer: '12345678901234567890ABCD',
  username: 'donald@duck.com',
  password: 'myLittleSecret'
}

Response

The newly created DRM account.

JSON object
username String Unique id and username, min 6 chars, e.g. a number or an e-mail address.
password String Password, min 6 chars.
devices Array List of devices that are using this login.
devices[]._id Id Id of the device.
devices[].type String Type of device: IOS, ANDROID, WEB.
devices[].name String Name of device.
devices[].model String Model of device, if available.
created Date Date and time the account was created.

Note that properties holding no value may be omitted from the object.

Example

{
  username: 'donald@duck.com',
  password: 'myLittleSecret',
  devices: [],
  created: '2016-01-01T00:00:00.000Z'
}

Errors

Error code Message Description
404 customer Customer not found
422 username Username must be at least 6 chars and only contain a-z A-Z 0-9 _ - @ .
409 username The username is not available
422 password The password must be at least 6 chars.
409 customer Customer already has a DRM account
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/iptv/drm/create.txt · Last modified: 2022/09/08 09:50 by Joakim Andersen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki