From 7f1b16462576aa26c3583688661bd85b83d15df1 Mon Sep 17 00:00:00 2001 From: Megna Biederman <106616123+mbiederman12@users.noreply.github.com> Date: Tue, 19 Jul 2022 09:53:58 -0700 Subject: [PATCH] [VIDECO-7846] Added Experience Composer Insights Sample Code (#52) * Added Experience Composer Insights Sample Code * Updated to condense spaces, and re-clarify comment * Update api key format Co-authored-by: Raulkg * Updated usage statistics * changed description Co-authored-by: Jeff Swartz Co-authored-by: Raulkg Co-authored-by: Jeff Swartz --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 3200ea1..ff32e11 100644 --- a/README.md +++ b/README.md @@ -341,6 +341,34 @@ input `endCursor` parameter to obtain the next page of data. For more informatio } ``` +### Experience Composer Usage Data + +#### Query to Insights API (Sample) + +##### This query returns the daily total minutes that [Experience Composer](https://tokbox.com/developer/guides/experience-composer) publishes to a video session (independent of an archiver or broadcast composer), Experience Composer publishes to a video session being archived, and Experience Composer publishes to a video session being sent to a live-streaming broadcast: + +``` +{ + project(projectId: ${YOUR_API_KEY}) { + projectData( + start: ${moment(startDate)}, + end: ${moment(endDate)}, + interval: DAILY + ) { + resources { + intervalStart, + intervalEnd, + usage { + experienceComposer, + experienceComposerArchive, + experienceComposerBroadcast + } + } + } + } +} +``` + ## Development and Contributing Interested in contributing? We :heart: pull requests! See the