/platform-client-sdk-common

Common code and config for generating PureCloud Platform API client SDKs

Primary LanguageHTMLMIT LicenseMIT

PureCloud Platform Client SDKs

This repository contains scripts, templates, and configuration files that are used in the process of auto generating PureCloud Platform API client libraries based on the API's swagger definition.

SDK Repos

Generating the SDK locally

For additional information and documentation, see the wiki.

Dependencies

Config files

Each SDK configuration has a config file located at ./resources/sdk/<language>/config.json. This contains all of the general configuration required to build the SDK.

A local config file is typically desired to store sensitive information (like a PureCloud client ID and secret) or to override settings in the standard config file.

For full documentation, see Config Files on the wiki.

Generate

First, from this repo's directory, install dependencies:

npm install

Then start the build process by specifying which SDK to build. This command will look in ./resources/sdk/<language> to find the primary config file (config.json or config.yaml) and a local config file (localConfig.json or localConfig.yaml). If a JSON and YAML config file exist, the JSON file will be preferred.

node sdkBuilder --sdk purecloudjava

The above command is equivalent to providing these paths to config files (assuming JSON files exist):

node sdkBuilder --config ./resources/sdk/purecloudjava/config.json --localconfig ./resources/sdk/purecloudjava/localConfig.json