Linking the course player
To send a user directly to the course player, use the url:
http://learninglogin.com/api/train_sessions/:login_id/:course_code?token=:token
Field | Type | Description |
---|---|---|
login_id | integer | Id of login consuming the train session |
course_code | string | Unique code which identifies the course, i.e. WHMIS |
token | string | Authentication token |
All fields are required
Embedding the course player
If you want to embed the course player into your site, just insert an iframe with the url above in the src property:
<iframe src="http://learninglogin.com/api/train_sessions/10000/WHMIS?token=API_TOKEN"> </iframe>