Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

purecloud-platform-client-v2

Package Overview
Dependencies
Maintainers
1
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purecloud-platform-client-v2 - npm Package Compare versions

Comparing version 29.1.0 to 30.0.0

2

package.json
{
"name": "purecloud-platform-client-v2",
"version": "29.1.0",
"version": "30.0.0",
"description": "A JavaScript library to interface with the PureCloud Platform API",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -28,4 +28,4 @@ ---

~~~ html
<!-- Replace `29.1.0` with the version you want to use. -->
<script src="https://sdk-cdn.mypurecloud.com/javascript/29.1.0/purecloud-platform-client-v2.min.js"></script>
<!-- Replace `30.0.0` with the version you want to use. -->
<script src="https://sdk-cdn.mypurecloud.com/javascript/30.0.0/purecloud-platform-client-v2.min.js"></script>
~~~

@@ -45,3 +45,3 @@

<!-- Include the full library -->
<script src="https://sdk-cdn.mypurecloud.com/javascript/29.1.0/purecloud-platform-client-v2.min.js"></script>
<script src="https://sdk-cdn.mypurecloud.com/javascript/30.0.0/purecloud-platform-client-v2.min.js"></script>
~~~

@@ -69,3 +69,3 @@

const platformClient = require('purecloud-platform-client-v2');
var client = platformClient.ApiClient.instance;
const client = platformClient.ApiClient.instance;
client.loginClientCredentialsGrant(clientId, clientSecret)

@@ -91,3 +91,3 @@ .then(function() {

const platformClient = require('platformClient');
var client = platformClient.ApiClient.instance;
const client = platformClient.ApiClient.instance;
client.loginImplicitGrant(clientId, redirectUri, { state: state })

@@ -112,3 +112,3 @@ .then(function(data) {

var client = platformClient.ApiClient.instance;
const client = platformClient.ApiClient.instance;
client.setAccessToken(yourAccessToken);

@@ -129,3 +129,3 @@ // Do authenticated things; no login function needed

var client = platformClient.ApiClient.instance;
const client = platformClient.ApiClient.instance;
client.setEnvironment('mypurecloud.ie');

@@ -140,4 +140,8 @@ ~~~

~~~ js
// Browser
const platformClient = require('platformClient');
var client = purecloud-platform-client-v2.ApiClient.instance;
// Node
const platformClient = require('purecloud-platform-client-v2');
const client = platformClient.ApiClient.instance;
client.setPersistSettings(true, 'optional_prefix');

@@ -157,3 +161,3 @@ ~~~

// Create API instance
var authorizationApi = new platformClient.AuthorizationApi();
const authorizationApi = new platformClient.AuthorizationApi();

@@ -182,3 +186,3 @@ // Authenticate

// Create API instance
var usersApi = new platformClient.UsersApi();
const usersApi = new platformClient.UsersApi();

@@ -212,3 +216,3 @@ // Authenticate

var client = purecloud-platform-client-v2.ApiClient.instance;
const client = platformClient.ApiClient.instance;
client.setReturnExtendedResponses(true);

@@ -254,3 +258,3 @@ ~~~

var client = purecloud-platform-client-v2.ApiClient.instance;
const client = platformClient.ApiClient.instance;
require('superagent-proxy')(client.superagent);

@@ -313,3 +317,3 @@ // Configure settings for your proxy here

var client = purecloud-platform-client-v2.ApiClient.instance;
const client = platformClient.ApiClient.instance;
client.setDebugLog(console.log, 25);

@@ -316,0 +320,0 @@ ~~~

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/AlertingApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/AnalyticsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/AttributesApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/AuthorizationApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/BillingApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/ContentManagementApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/ExternalContactsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/FaxApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/GeolocationApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/GreetingsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/GroupsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/IdentityProviderApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/IntegrationsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/LanguagesApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/LicenseApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/LocationsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/MobileDevicesApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/NotificationsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/OAuthApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/OrganizationApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/PresenceApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/QualityApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/RecordingApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/ResponseManagementApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/RoutingApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -786,3 +786,3 @@

/**
* Search for queues by name
* Get a page of simplified queue objects, filterable by name, queue ID(s), or division ID(s).
*

@@ -798,3 +798,3 @@ * @param {Object} opts Optional parameters

*/
this.getRoutingQueuesSearch = function(opts) {
this.getRoutingQueuesDivisionviews = function(opts) {
opts = opts || {};

@@ -804,3 +804,3 @@

return this.apiClient.callApi(
'/api/v2/routing/queues/search',
'/api/v2/routing/queues/divisionviews',
'GET',

@@ -807,0 +807,0 @@ { },

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/ScriptsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/SearchApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/StationsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/SuggestApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/TokensApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/UserRecordingsApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/UsersApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -1512,7 +1512,5 @@

* @param {String} userId User ID
* @param {Object} opts Optional parameters
* @param {Array.<Object>} opts.body Skills
* @param {Array.<Object>} body Skills
*/
this.putUserProfileskills = function(userId, opts) {
opts = opts || {};
this.putUserProfileskills = function(userId, body) {

@@ -1524,3 +1522,8 @@ // verify the required parameter 'userId' is set

// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw "Missing the required parameter 'body' when calling putUserProfileskills";
}
return this.apiClient.callApi(

@@ -1533,3 +1536,3 @@ '/api/v2/users/{userId}/profileskills',

{ },
opts['body'],
body,
['PureCloud Auth'],

@@ -1536,0 +1539,0 @@ ['application/json'],

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/UtilitiesApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/VoicemailApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -21,3 +21,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/api/WebChatApi
* @version 29.1.0
* @version 30.0.0
*/

@@ -24,0 +24,0 @@

@@ -20,3 +20,3 @@ (function(root, factory) {

* @module purecloud-platform-client-v2/ApiClient
* @version 29.1.0
* @version 30.0.0
*/

@@ -698,3 +698,3 @@

request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
//request.set({ 'purecloud-sdk': '29.1.0' });
//request.set({ 'purecloud-sdk': '30.0.0' });

@@ -701,0 +701,0 @@ // set request timeout

@@ -41,3 +41,3 @@ (function(factory) {

* @module purecloud-platform-client-v2/index
* @version 29.1.0
* @version 30.0.0
*/

@@ -44,0 +44,0 @@ var platformClient = {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc