An API wrapper for the ThingsPro Cloud
npm install thingspro-cloud-sdk 
> An API wrapper for the ThingsPro Cloud API.
yarn add thingspro-cloud-sdk
Import the module and create a new client. Passing api urls is optional if
you need call private cloud service.
``js
const tpc = require('thingspro-cloud-sdk')()
// Optional: change the api server url
tpc.setServerUrl({
admin: 'https://api.thingsprocloud.com/admin-api/v1',
dsc: 'https://api.thingsprocloud.com/dsc/v1',
dlm: 'https://api.thingsprocloud.com/api/v1',
rtm: 'https://api.thingsprocloud.com/rtm/v1',
pic: 'https://pic.thingsprocloud.com/api/v1',
dsr: 'https://repo.thingsprocloud.com/api/v1'
})
// login dlm with email and password
await tpc.dlm().login('guest@thingsprocloud.com', 'your_password')
// get logged in user profile
console.log(tpc.dlm().me)
// get all projects
console.log((await tpc.dlm().project.get())
``
- Admin
- login
- logout
- me
- request
- DSC: Device Security Center
- login
- logout
- me
- request
- DLM: Device Lifecycle Management
- login
- logout
- me
- request
- RTM: Realtime Message
- subscribe
- PIC: Provisioning Init-connection Certificate
- setCert
- request
- REPO: Software Repository
- setCert
- request
- Utils
- dotenv
- random