Skip to content

Commit e177618

Browse files
author
InIn Devops
committed
2.0.7
1 parent 6a3f6fa commit e177618

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+933
-933
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ npm install purecloud-platform-client-v2
2525
Reference from the CDN:
2626

2727
~~~ html
28-
<!-- Replace `2.0.6` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/2.0.6/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `2.0.7` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/2.0.7/purecloud-platform-client-v2.min.js"></script>
3030
~~~
3131

3232
View the documentation on the [PureCloud Developer Center](https://developer.mypurecloud.com/api/rest/client-libraries/javascript/).
@@ -50,7 +50,7 @@ Reference the SDK in your HTML document. For convenience, all modules are bundle
5050
Require the SDK in your node app. All modules are obtained from the `purecloud-platform-client-v2` package.
5151

5252
~~~ javascript
53-
var platformClient = require('purecloud-platform-client-v2');
53+
const platformClient = require('purecloud-platform-client-v2');
5454
~~~
5555

5656

@@ -63,7 +63,7 @@ After authentication has completed, the access token is stored on the `ApiClient
6363
The Client Credentials grant only works when used in node.js. This is restricted intentionally because it is impossible for client credentials to be handled securely in a browser application.
6464

6565
~~~ javascript
66-
var platformClient = require('purecloud-platform-client-v2');
66+
const platformClient = require('purecloud-platform-client-v2');
6767
var client = platformClient.ApiClient.instance;
6868
client.loginClientCredentialsGrant(clientId, clientSecret)
6969
.then(function() {
@@ -80,7 +80,7 @@ client.loginClientCredentialsGrant(clientId, clientSecret)
8080
The Implicit grant only works when used in a browser. This is because a node.js application does not have a browser interface that can display the PureCloud login window.
8181

8282
~~~ javascript
83-
var platformClient = require('purecloud-platform-client-v2');
83+
const platformClient = require('purecloud-platform-client-v2');
8484
var client = platformClient.ApiClient.instance;
8585
client.loginImplicitGrant(clientId, redirectUri)
8686
.then(function() {
@@ -95,7 +95,7 @@ client.loginImplicitGrant(clientId, redirectUri)
9595
**Any platform** Provide an existing auth token
9696

9797
~~~ javascript
98-
var platformClient = require('purecloud-platform-client-v2');
98+
const platformClient = require('purecloud-platform-client-v2');
9999
var client = platformClient.ApiClient.instance;
100100
client.setAccessToken(yourAccessToken);
101101
// Do authenticated things; no login function needed
@@ -107,7 +107,7 @@ client.setAccessToken(yourAccessToken);
107107
If connecting to a PureCloud environment other than mypurecloud.com (e.g. mypurecloud.ie), set the environment on the `ApiClient` instance.
108108

109109
~~~ js
110-
var platformClient = require('purecloud-platform-client-v2');
110+
const platformClient = require('purecloud-platform-client-v2');
111111
var client = platformClient.ApiClient.instance;
112112
client.setEnvironment('mypurecloud.ie');
113113
~~~
@@ -118,7 +118,7 @@ client.setEnvironment('mypurecloud.ie');
118118
In a web environment, it is possible to persist the access token to prevent an authentication request from being made on each page load. To enable this function, simply enable settings persistence prior to attempting a login. To maintain multiple auth tokens in storage, specify the prefix to use for storage/retrieval when enabling persistence. Otherwise, the prefix is optional and will default to `purecloud`.
119119

120120
~~~ js
121-
var platformClient = require('purecloud-platform-client-v2');
121+
const platformClient = require('purecloud-platform-client-v2');
122122
var client = purecloud-platform-client-v2.ApiClient.instance;
123123
client.setPersistSettings(true, 'optional_prefix');
124124
~~~
@@ -180,7 +180,7 @@ client.loginImplicitGrant(clientId, redirectUri)
180180
By default, the SDK will return only the response body as the result of an API function call. To retrieve additional information about the response, enable extended responses. This will return the extended response for all API function calls:
181181

182182
~~~ js
183-
var platformClient = require('purecloud-platform-client-v2');
183+
const platformClient = require('purecloud-platform-client-v2');
184184
var client = purecloud-platform-client-v2.ApiClient.instance;
185185
client.setReturnExtendedResponses(true);
186186
~~~
@@ -249,7 +249,7 @@ Example error response object:
249249
There are hooks to trace requests and responses. To enable debug tracing, provide a log object. Optionally, specify a maximum number of lines. If specified, the response body trace will be truncated. If not specified, the entire response body will be traced out.
250250

251251
~~~ js
252-
var platformClient = require('purecloud-platform-client-v2');
252+
const platformClient = require('purecloud-platform-client-v2');
253253
var client = purecloud-platform-client-v2.ApiClient.instance;
254254
client.setDebugLog(console.log, 25);
255255
~~~

build/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ npm install purecloud-platform-client-v2
2525
Reference from the CDN:
2626

2727
~~~ html
28-
<!-- Replace `2.0.6` with the version you want to use. -->
29-
<script src="https://sdk-cdn.mypurecloud.com/javascript/2.0.6/purecloud-platform-client-v2.min.js"></script>
28+
<!-- Replace `2.0.7` with the version you want to use. -->
29+
<script src="https://sdk-cdn.mypurecloud.com/javascript/2.0.7/purecloud-platform-client-v2.min.js"></script>
3030
~~~
3131

3232
View the documentation on the [PureCloud Developer Center](https://developer.mypurecloud.com/api/rest/client-libraries/javascript/).
@@ -50,7 +50,7 @@ Reference the SDK in your HTML document. For convenience, all modules are bundle
5050
Require the SDK in your node app. All modules are obtained from the `purecloud-platform-client-v2` package.
5151

5252
~~~ javascript
53-
var platformClient = require('purecloud-platform-client-v2');
53+
const platformClient = require('purecloud-platform-client-v2');
5454
~~~
5555

5656

@@ -63,7 +63,7 @@ After authentication has completed, the access token is stored on the `ApiClient
6363
The Client Credentials grant only works when used in node.js. This is restricted intentionally because it is impossible for client credentials to be handled securely in a browser application.
6464

6565
~~~ javascript
66-
var platformClient = require('purecloud-platform-client-v2');
66+
const platformClient = require('purecloud-platform-client-v2');
6767
var client = platformClient.ApiClient.instance;
6868
client.loginClientCredentialsGrant(clientId, clientSecret)
6969
.then(function() {
@@ -80,7 +80,7 @@ client.loginClientCredentialsGrant(clientId, clientSecret)
8080
The Implicit grant only works when used in a browser. This is because a node.js application does not have a browser interface that can display the PureCloud login window.
8181

8282
~~~ javascript
83-
var platformClient = require('purecloud-platform-client-v2');
83+
const platformClient = require('purecloud-platform-client-v2');
8484
var client = platformClient.ApiClient.instance;
8585
client.loginImplicitGrant(clientId, redirectUri)
8686
.then(function() {
@@ -95,7 +95,7 @@ client.loginImplicitGrant(clientId, redirectUri)
9595
**Any platform** Provide an existing auth token
9696

9797
~~~ javascript
98-
var platformClient = require('purecloud-platform-client-v2');
98+
const platformClient = require('purecloud-platform-client-v2');
9999
var client = platformClient.ApiClient.instance;
100100
client.setAccessToken(yourAccessToken);
101101
// Do authenticated things; no login function needed
@@ -107,7 +107,7 @@ client.setAccessToken(yourAccessToken);
107107
If connecting to a PureCloud environment other than mypurecloud.com (e.g. mypurecloud.ie), set the environment on the `ApiClient` instance.
108108

109109
~~~ js
110-
var platformClient = require('purecloud-platform-client-v2');
110+
const platformClient = require('purecloud-platform-client-v2');
111111
var client = platformClient.ApiClient.instance;
112112
client.setEnvironment('mypurecloud.ie');
113113
~~~
@@ -118,7 +118,7 @@ client.setEnvironment('mypurecloud.ie');
118118
In a web environment, it is possible to persist the access token to prevent an authentication request from being made on each page load. To enable this function, simply enable settings persistence prior to attempting a login. To maintain multiple auth tokens in storage, specify the prefix to use for storage/retrieval when enabling persistence. Otherwise, the prefix is optional and will default to `purecloud`.
119119

120120
~~~ js
121-
var platformClient = require('purecloud-platform-client-v2');
121+
const platformClient = require('purecloud-platform-client-v2');
122122
var client = purecloud-platform-client-v2.ApiClient.instance;
123123
client.setPersistSettings(true, 'optional_prefix');
124124
~~~
@@ -180,7 +180,7 @@ client.loginImplicitGrant(clientId, redirectUri)
180180
By default, the SDK will return only the response body as the result of an API function call. To retrieve additional information about the response, enable extended responses. This will return the extended response for all API function calls:
181181

182182
~~~ js
183-
var platformClient = require('purecloud-platform-client-v2');
183+
const platformClient = require('purecloud-platform-client-v2');
184184
var client = purecloud-platform-client-v2.ApiClient.instance;
185185
client.setReturnExtendedResponses(true);
186186
~~~
@@ -249,7 +249,7 @@ Example error response object:
249249
There are hooks to trace requests and responses. To enable debug tracing, provide a log object. Optionally, specify a maximum number of lines. If specified, the response body trace will be truncated. If not specified, the entire response body will be traced out.
250250

251251
~~~ js
252-
var platformClient = require('purecloud-platform-client-v2');
252+
const platformClient = require('purecloud-platform-client-v2');
253253
var client = purecloud-platform-client-v2.ApiClient.instance;
254254
client.setDebugLog(console.log, 25);
255255
~~~

0 commit comments

Comments
 (0)