Page tree
Skip to end of metadata
Go to start of metadata

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.

Request Headers

ParameterDescription
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

CodeTextDescription
403Not allowedIt's not a private content item, or its X-Is-Viewed-Once property is set to 0.
200OkThe key for private content has been generated.

 

Sample Request

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

Sample Response

HTTP/1.1 200 OK
Server: nginx
Connection: close

<view_key>
  •