launch icon indicating copy to clipboard operation
launch copied to clipboard

Any code example about how to generate content_token and content_endpoint?

Open juveinfo opened this issue 6 years ago • 1 comments

Hi All,

Understood the concept of content_token and content endpoint, any code level example can be provided about how to generate "content_token and content endpoint"?

Thanks a lot Alex

In addition to the launch link parameters described in the launch section, the following parameters will be provided as needed:

content_token: The authorization token to be included on requests to the content endpoint. If missing, the content is not protected and must be accessed directly.

content_endpoint: the absolute URL to use to access protected content. If content token is specified, but the endpoint is not, the TCAPI endpoint, with the postfix “content/” is to be used as the content endpoint.

When a client application needs to access a protected resource, it will first determine the path to the protected resource based on the content endpoint, and the relative path of the protected resource within the Tin Can package.

juveinfo avatar Jul 05 '19 07:07 juveinfo

Are you developing an application that will host the private content or an application that will launch it?

The endpoint is just the url that the browser should go to to access the content. The token could be any string and is set up the application hosting the content.

If it helps, Articulate have produced a guide for LMS developers here: https://articulate.com/support/article/Implementing-Tin-Can-API-to-Support-Articulate-Content

garemoko avatar Jul 05 '19 15:07 garemoko