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.
Parameter | Description |
---|---|
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.
Code | Text | Description |
---|---|---|
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
Host: api.ispringonline.com
X-Auth-Account-Url: http://myaccount.ispringonline.com
X-Auth-Email: email@email.com
X-Auth-Password: password
HTTP/1.1 200 OK
Server: nginx
Connection: close
<view_key>