1.0.8 • Published 7 years ago
splynx-nodejs-api v1.0.8
Splynx Node.js api module
Use this module for work with Splynx API into Node.js
How to install
Go to your project directory
Install splynx-nodejs-api library
npm install splynx-nodejs-apiRun example for API v1.0
Copy example file for API v1.0
cp node_modules/splynx-nodejs-api/examples/v1/get.js example.jsOr copy example file for API v2.0
cp node_modules/splynx-nodejs-api/examples/v2/get.js example.jsEdit example file
nano example.jsReplace the constants with your data
const SPLYNX_HOST = 'YOUR_SPLYNX_HOST';
const API_KEY = 'YOUR_SPLYNX_API_KEY';
const API_SECRET = 'YOUR_SPLYNX_API_SECRET';Run example
node example.jsAPI version
Required Splynx version according to API versions.
| API version | Splynx version |
|---|---|
| 1.0 | <= 2.2 |
| 2.0 | >= 2.3 |
Examples
See examples into examples directory