Difference between revisions of "Retireve the video tutorial details"
Ashley DeBon (talk | contribs) (Created page with "== Get Tutorials == === Base URL === https://apimobile.callproof.com === Endpoint === /api/tutorials === Purpose === Retrieves tutorial videos grouped by category. Returns...") |
Ashley DeBon (talk | contribs) (→Successful Response (200)) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | == Get Tutorials == | + | == [[Mobile_API]] »Get Tutorials == |
=== Base URL === | === Base URL === | ||
| Line 33: | Line 33: | ||
==== Request Body ==== | ==== Request Body ==== | ||
None. | None. | ||
| + | |||
| + | === cURL Example for Android === | ||
| + | |||
| + | <pre> curl --location 'https://apimobile.callproof.com/api/tutorials' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' </pre> | ||
| + | |||
| + | === cURL Example for iOS === | ||
| + | |||
| + | <pre> curl --location 'https://apimobile.callproof.com/api/tutorials' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' </pre> | ||
=== Successful Response (200) === | === Successful Response (200) === | ||
Latest revision as of 07:55, 21 July 2026
Contents
Mobile_API »Get Tutorials
Base URL
https://apimobile.callproof.com
Endpoint
/api/tutorials
Purpose
Retrieves tutorial videos grouped by category. Returns global tutorial categories (excluding the introductory category) plus company-specific videos, including YouTube thumbnail URLs when a video link is available.
HTTP Method
GET
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer access token |
Security
- Yes – Requires Bearer Token authentication.
Parameters
Path Parameters
None.
Query Parameters
None.
Request Body
None.
cURL Example for Android
curl --location 'https://apimobile.callproof.com/api/tutorials' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
cURL Example for iOS
curl --location 'https://apimobile.callproof.com/api/tutorials' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Successful Response (200)
Returns tutorial categories and their videos.
| Field | Type | Description |
|---|---|---|
| clientStatusCode | integer | Status indicator for the client (for example, 200) |
| user_id | integer | Identifier of the authenticated user |
| company_id | integer | Identifier of the authenticated user’s company |
| data | array | List of tutorial categories with videos |
| uri | string | Requested resource URI |
data[]
| Field | Type | Description |
|---|---|---|
| category_id | integer | Unique identifier of the tutorial category |
| category_name | string | Display name of the category |
| category_key | string | Category key |
| video_details | array | Videos in this category |
data[].video_details[]
| Field | Type | Description |
|---|---|---|
| id | integer | Unique identifier of the video |
| title | string | Video title |
| description | string | Video description |
| video_link | string | Video URL (for example, YouTube link) |
| position | integer | Display order of the video |
| thumbnail_default | string | Default YouTube thumbnail URL, when available |
| thumbnail_mqdefault | string | Medium-quality YouTube thumbnail URL, when available |
| thumbnail_sddefault | string | SD YouTube thumbnail URL, when available |
| thumbnail_maxresdefault | string | Max-resolution YouTube thumbnail URL, when available |
Error Responses
| Status Code | Meaning |
|---|---|
| 400 | Bad Request – tutorial videos could not be retrieved |
| 401 | Unauthorized – missing, invalid, or expired Bearer token |
- 400 – An error occurred while retrieving video details (for example, "Error while retriving the video details").
- 401 – Authentication failed or the access token is missing/expired.