nRF Cloud JavaScript API Client
Provides the JavaScript API client for the nRFCloud.com REST API.
:warning: This is a preview release and might be changed without notice.
API Client
The API client is available on npm:
npm i @nrfcloud/api-client-javascript
Browser
const {Client} = require('@nrfcloud/api-client-javascript')
const client = new Client(token);
client
.registerGateway('foo')
.then(res => {
console.log(res)
})
Node.js
npm i isomorphic-fetch es6-promise
require('es6-promise').polyfill();
require('isomorphic-fetch');
const {Client} = require('@nrfcloud/api-client-javascript')
...