Getting Started
Before You Begin
This SDK is stored in the private npm repo and developed for use with the Cloudike Backend. If you need access, please Contacts Us
Requirements
- Node version — v12.16.3
- Npm version — 6.14.4
Installation
npm i
Initialization
import CLPhotos from 'web_photos';
let photosApp;
const options = {
logLevel: 'error' // 'trace' | 'debug' | 'info' | 'warn' | 'error'
};
const config = {
authToken: '', // user auth token
baseUrl: '', // api base url required
userAgent: '' // user agent name required
}
try {
photosApp = CLPhotos.init(options, config);
} catch (e) {
// catch photo sdk InternalError
}
Dependencies
Our SDK uses the following dependencies:
{
"axios": "^0.21.1",
"ky": "^0.28.5",
"lodash": "^4.17.21",
"nanoevents": "^6.0.1",
"qs": "^6.10.1",
"uuid": "^8.3.2"
}