@dolbyio/dolbyio-rest-apis-client 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,10 +19,10 @@ To get an access token that will be used by the client SDK for an end user to op
|
|
|
19
19
|
```javascript
|
|
20
20
|
const dolbyio = require('@dolbyio/dolbyio-rest-apis-client');
|
|
21
21
|
|
|
22
|
-
const
|
|
23
|
-
const
|
|
22
|
+
const APP_KEY = 'YOUR_APP_KEY';
|
|
23
|
+
const APP_SECRET = 'YOUR_APP_SECRET';
|
|
24
24
|
|
|
25
|
-
const at = await dolbyio.communications.authentication.getClientAccessToken(
|
|
25
|
+
const at = await dolbyio.communications.authentication.getClientAccessToken(APP_KEY, APP_SECRET);
|
|
26
26
|
|
|
27
27
|
console.log(`Access Token: ${at.access_token}`);
|
|
28
28
|
```
|
|
@@ -32,10 +32,10 @@ To get an access token that will be used by your server to perform backend opera
|
|
|
32
32
|
```javascript
|
|
33
33
|
const dolbyio = require('@dolbyio/dolbyio-rest-apis-client');
|
|
34
34
|
|
|
35
|
-
const
|
|
36
|
-
const
|
|
35
|
+
const APP_KEY = 'YOUR_APP_KEY';
|
|
36
|
+
const APP_SECRET = 'YOUR_APP_SECRET';
|
|
37
37
|
|
|
38
|
-
const jwt = await dolbyio.communications.authentication.getApiAccessToken(
|
|
38
|
+
const jwt = await dolbyio.communications.authentication.getApiAccessToken(APP_KEY, APP_SECRET);
|
|
39
39
|
|
|
40
40
|
console.log(`Access Token: ${jwt.access_token}`);
|
|
41
41
|
```
|
|
@@ -47,8 +47,8 @@ To create a Dolby Voice conference, you first must retrieve an API Access Token,
|
|
|
47
47
|
```javascript
|
|
48
48
|
const dolbyio = require('@dolbyio/dolbyio-rest-apis-client');
|
|
49
49
|
|
|
50
|
-
const
|
|
51
|
-
const
|
|
50
|
+
const APP_KEY = 'YOUR_APP_KEY';
|
|
51
|
+
const APP_SECRET = 'YOUR_APP_SECRET';
|
|
52
52
|
|
|
53
53
|
const ownerExternalId = ''; // Identifier of the owner of the conference
|
|
54
54
|
const alias = ''; // Conference alias
|
|
@@ -65,7 +65,7 @@ const options = {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
// Request an Access Token
|
|
68
|
-
const jwt = await dolbyio.communications.authentication.getApiAccessToken(
|
|
68
|
+
const jwt = await dolbyio.communications.authentication.getApiAccessToken(APP_KEY, APP_SECRET);
|
|
69
69
|
|
|
70
70
|
// Create the conference
|
|
71
71
|
const conference = await dolbyio.communications.conference.createConference(jwt, options);
|
|
@@ -82,10 +82,10 @@ To get an access token, use the following code:
|
|
|
82
82
|
```javascript
|
|
83
83
|
const dolbyio = require('@dolbyio/dolbyio-rest-apis-client');
|
|
84
84
|
|
|
85
|
-
const
|
|
86
|
-
const
|
|
85
|
+
const APP_KEY = 'YOUR_APP_KEY';
|
|
86
|
+
const APP_SECRET = 'YOUR_APP_SECRET';
|
|
87
87
|
|
|
88
|
-
const at = await dolbyio.media.platform.
|
|
88
|
+
const at = await dolbyio.media.platform.getApiAccessToken(API_KEY, API_SECRET);
|
|
89
89
|
|
|
90
90
|
console.log(`Access Token: ${at.access_token}`);
|
|
91
91
|
```
|