Skip to content

Commit

Permalink
[VIDECO-7846] Added Experience Composer Insights Sample Code (#52)
Browse files Browse the repository at this point in the history
* Added Experience Composer Insights Sample Code

* Updated to condense spaces, and re-clarify comment

* Update api key format

Co-authored-by: Raulkg <gaddam.rahul.kumar@gmail.com>

* Updated usage statistics

* changed description

Co-authored-by: Jeff Swartz <jeff.swartz@vonage.com>

Co-authored-by: Raulkg <gaddam.rahul.kumar@gmail.com>
Co-authored-by: Jeff Swartz <jeff.swartz@vonage.com>
  • Loading branch information
3 people committed Jul 19, 2022
1 parent 5977d4a commit 7f1b164
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f1b164

Please sign in to comment.