You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,7 +63,7 @@ After authentication has completed, the access token is stored on the `ApiClient
63
63
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.
64
64
65
65
~~~javascript
66
-
var platformClient =require('purecloud-platform-client-v2');
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.
81
81
82
82
~~~javascript
83
-
var platformClient =require('purecloud-platform-client-v2');
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`.
119
119
120
120
~~~js
121
-
var platformClient =require('purecloud-platform-client-v2');
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:
181
181
182
182
~~~js
183
-
var platformClient =require('purecloud-platform-client-v2');
var client = purecloud-platform-client-v2.ApiClient.instance;
185
185
client.setReturnExtendedResponses(true);
186
186
~~~
@@ -249,7 +249,7 @@ Example error response object:
249
249
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.
250
250
251
251
~~~js
252
-
var platformClient =require('purecloud-platform-client-v2');
@@ -63,7 +63,7 @@ After authentication has completed, the access token is stored on the `ApiClient
63
63
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.
64
64
65
65
~~~javascript
66
-
var platformClient =require('purecloud-platform-client-v2');
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.
81
81
82
82
~~~javascript
83
-
var platformClient =require('purecloud-platform-client-v2');
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`.
119
119
120
120
~~~js
121
-
var platformClient =require('purecloud-platform-client-v2');
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:
181
181
182
182
~~~js
183
-
var platformClient =require('purecloud-platform-client-v2');
var client = purecloud-platform-client-v2.ApiClient.instance;
185
185
client.setReturnExtendedResponses(true);
186
186
~~~
@@ -249,7 +249,7 @@ Example error response object:
249
249
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.
250
250
251
251
~~~js
252
-
var platformClient =require('purecloud-platform-client-v2');
0 commit comments