mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Merge pull request #19082 from CatGuardian/master
Added support for the sessionId parameter on the listArchives call.
This commit is contained in:
Vendored
+2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user