@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.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. 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 CONSUMER_KEY = 'YOUR_CONSUMER_KEY';
23
- const CONSUMER_SECRET = 'YOUR_CONSUMER_SECRET';
22
+ const APP_KEY = 'YOUR_APP_KEY';
23
+ const APP_SECRET = 'YOUR_APP_SECRET';
24
24
 
25
- const at = await dolbyio.communications.authentication.getClientAccessToken(CONSUMER_KEY, CONSUMER_SECRET);
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 CONSUMER_KEY = 'YOUR_CONSUMER_KEY';
36
- const CONSUMER_SECRET = 'YOUR_CONSUMER_SECRET';
35
+ const APP_KEY = 'YOUR_APP_KEY';
36
+ const APP_SECRET = 'YOUR_APP_SECRET';
37
37
 
38
- const jwt = await dolbyio.communications.authentication.getApiAccessToken(CONSUMER_KEY, CONSUMER_SECRET);
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 CONSUMER_KEY = 'YOUR_CONSUMER_KEY';
51
- const CONSUMER_SECRET = 'YOUR_CONSUMER_SECRET';
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(CONSUMER_KEY, CONSUMER_SECRET);
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 API_KEY = 'YOUR_API_KEY';
86
- const API_SECRET = 'YOUR_API_SECRET';
85
+ const APP_KEY = 'YOUR_APP_KEY';
86
+ const APP_SECRET = 'YOUR_APP_SECRET';
87
87
 
88
- const at = await dolbyio.media.platform.getAccessToken(API_KEY, API_SECRET);
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
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolbyio/dolbyio-rest-apis-client",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Node.JS wrapper for the dolby.io REST APIs",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {