API Documentation (1.0.0)
Following this section, goes to privide all description fields of api's.
Base URL
Remember that to use the test environment, you must use the following url prefix https://test.osteocom.me/sv6. While for production environment must use this link https://osteocom.me/sv6.
Authorization API POST
The Authorization api provides the access all other subsequent calls. You need two fields, clientId and clientSecret, you will use the returned jwt token in the request header of your next calls.
Payload
Response
HTTP Status Codes
| Status Code | Description |
|---|---|
200 OK | A valid JWT token. |
401 Not Authorized | Unknown client |
Catalog API: Content catalog access POST
It access the Osteocom content catalog, which has already been pre-agreed between the parties. At this stage, you access the necessary information about the available content. Each channel has its own data depends on its preconfigurated language as according between osteocom and the partner.
Header
Payload
Response
catalog[] object
catalog[].authors[] object
catalog[].video[] object
catalog[].video[].authors[] object
catalog[].video[].audio[] object
HTTP Status Codes
| Status Code | Description |
|---|---|
200 OK | Catalog is returned |
404 Not Found | Catalog not found |
500 Internal Server Error | Unexpected error |
Content Access Authorization POST
Manages the purchase of content. Send Osteocom user and purchase details (including the content chosen and its price). After processing this data, the user is authorized to access purchased content.
Header
Payload
products[] object
Response
HTTP Status Codes
| Status Code | Description |
|---|---|
200 OK | Purchase successful. |
500 Internal Server Error | Unexpected error. |
Video API POST
Allows end users to access purchased content. Verifies permissions and grants access if everything is correct. The api outocome is a token that you can use by embedding into our provided url within an iframe; see the section: Iframe-Based Video Access.
Header
Payload
Response
HTTP Status Codes
| Status Code | Description |
|---|---|
200 OK | A signed URL for the video is returned |
401 Not Authorized | The client is not authorized |
401 Token Expired | Token video has expired. |
404 Not Found | Video not found. |
500 Internal Server Error | An unexpected error occurred |