Merge pull request #19082 from CatGuardian/master

Added support for the sessionId parameter on the listArchives call.
This commit is contained in:
Daniel Rosenwasser
2017-08-17 12:29:26 -07:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
// Type definitions for opentok v2.3.2
// Project: https://github.com/opentok/opentok-node
// Definitions by: Seth Westphal <https://github.com/westy92>
// Anthony Messerschmidt <https://github.com/CatGuardian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'opentok' {
@@ -61,6 +62,7 @@ declare module 'opentok' {
export interface ListArchivesOptions {
count?: number;
offset?: number;
sessionId?: string;
}
}
+1
View File
@@ -51,6 +51,7 @@ client.deleteArchive('ARCHIVE_ID', (err: Error) => {
const listArchivesOptions: OpenTok.ListArchivesOptions = {
count: 10,
offset: 5,
sessionId: '9_JY17LWC6LeKsGQ2-DXQlBac32PLwRSI7TV0FKOIDEX0PsmejJOGhrRtAW3PWABpEW3C-cp',
}
client.listArchives(listArchivesOptions, (err: Error, archives: OpenTok.Archive[], totalCount: number) => {