Using the Insomnia Workspace for the Live API Quick Start

The JSON file enclosed in this zip is an importable Insomnia workspace with requests and an environment set up to help you complete the steps of the Live API Quick Start.

Steps

  1. Open the Insomnia Preferences and go to the Data tab.
  2. Select Import Data > From File.
  3. Select the Quick-Start/-Create-Live-Event-with-the-Live-API_2017-11-20.json file from you hard drive and import it.
  4. Open the Quick Start: Create Live Event with the Live API Workspace.
  5. Go to Manage Environments and select the Quick Start: Create Live Event enviroment - the JSON inside will look like this:
    {
    	"account_id": "YOUR_ACCOUNT_ID_HERE",
    	"api_key": "YOUR_LIVE_API_KEY_HERE",
    	"client_id": "YOUE_CMS_API_CLIENT_ID_HERE",
    	"client_secret": "YOUE_CMS_API_CLIENT_SECRET_HERE",
    	"video_name": "SOME_NAME_FOR_YOUR_VIDEO",
    	"video_id": "VIDEO_ID_FROM_THE_RESPONSE_TO_THE_CREATE_VIDEO_REQUEST",
    	"playback_url": "PLAYBACK_URL_FROM_CREATE_LIVE_JOB_RESPONSE",
    	"access_token_url": "https://oauth.brightcove.com/v4/access_token"
    }
  6. Enter your values for the account_id, api_key, client_id, client_secret, and video_name variables (the video_name is arbitrary; use anything you like)
  7. Click Done to save changes.
  8. Open the Quick Start: Create Live Event and select the Create Live Job request.
  9. If you entered all the necessary variable values in the previous step, the request should be ready to send - click Send to make the request.
  10. From the response, copy the playback_url value (or the playback_url_dvr value; either will work).
  11. Open the Quick Start: Create Live Event Environment again and use the value you copied for playback_url variable. Save changes.
  12. Now select the Create Video request and send it.
  13. Copy the id for the video from the response, open the Quick Start: Create Live Event Environment again and use the value you copied for video_id variable. Save changes.
  14. You can now send the Add Remote HLS Manifest request to complete the Quick Start.