API Guide: Video Data
An overview of accessing the R1 Discover activity data via our API.
Introduction
This guide provides detailed instructions for integration partners on how to effectively access data on users watching our videos via the API endpoints. By following this guide, partners can ensure a seamless and efficient integration process, enabling them to create a comprehensive picture of user video interactions within the R1 Discover platform.
Prerequisites
Before beginning the integration process, ensure an R1 Discover Tech Partner account has been created, and you are able to generate your bearer token for authentication.
Detailed instructions on prerequisites can be found here: R1 API: Getting Started
Workflow Overview
Understanding the workflow of accessing the user video data API endpoints is crucial for efficient integration. This section outlines the order in which the endpoints should be accessed to successfully gather user video data.
Workflow Diagram:
Generate Bearer Token
Retrieve Core Company Data
Company List
Company User List
Company Topic List
Company Activity List
Access Video Data
View Company Video Metrics
View User Video Metrics
Step-by-Step Instructions
Generate Bearer Token
Instructions:
Log into R1 Discover Tech Partner Account.
Select the My Companies tab.
Click the Key icon to generate a token.
Copy the token to a secure location. Note that the token will no longer be visible once you leave the page.
Link to Documentation: Generate Bearer Token
Retrieve Company List
Instructions:
Use the Company List Endpoint to retrieve the list of companies and their IDs.
Make a GET request to
https://api.r1learning.com/api/v1/company-list/{page}/{limit}
.Include the Bearer token in the request headers.
Link to Documentation: Company List Endpoint
Retrieve Company Topic List
Instructions:
Use the Company Topic List Endpoint to retrieve the list of all topics available to a company.
Make a GET request to
https://api.r1learning.com/api/v1/company-topic-list
.Include the Bearer token in the request headers.
Link to Documentation: Company Topic List Endpoint
Retrieve Company Activity List
Instructions:
Use the Company Activity List Endpoint to retrieve the list of all activities available to a company.
Make a GET request to
https://api.r1learning.com/api/v1/company-activity-list
.Include the Bearer token in the request headers.
Link to Documentation: Company Activity List Endpoint
View Company Video Metrics
Instructions:
Use the View Company Video Metrics Endpoint to retrieve the list of all video sessions for all users in the company.
Make a GET request to
https://api.r1learning.com/api/v1/view-company-video-metrics/{companyId}/{page}/{limit}
.Include the Bearer token in the request headers.
Link to Documentation: View Company Video Metrics Endpoint
View User Video Metrics
Instructions:
Use the View User Video Metrics Endpoint to retrieve the list of all video sessions for a specific user in the company.
Make a GET request to
https://api.r1learning.com/api/v1/view-user-video-metrics/{userId}/{page}/{limit}
.Include the Bearer token in the request headers.
Link to Documentation: View User Video Metrics Endpoint
Last updated