You can generate a key for a private content item by sending the POST request to the following URL:/content/<content_item_id>/view_key.
|X-Auth-Account-Url (required)||Base URL of the account, e.g. http://myaccount.ispringlearn.com|
|X-Auth-Email (required)||Administrator/Publisher e-mail address.|
|X-Auth-Password (required)||Administrator/Publisher password.|
After the request has been completed, the system returns the response with Code 200. The body of the response will contain the generated key.
Possible Response Codes
|403||Not allowed||It's not a private content item, or its X-Is-Viewed-Once property is set to 0.|
|200||Ok||The key for private content has been generated.|
POST /content/1/view_key HTTP/1.1
HTTP/1.1 200 OK