0.1.26 • Published 3 years ago
ething-js v0.1.26
EThing JavaScript library
This JS library can talk to the EThing API.
Usage
Node
If you have node, you can install it with npm:
npm install ething-js
Browser
Download the latest ething.js for browser.
Or build your own version :
npm run build
Documentation
See the API.
Examples
var EThing = require('ething-js');
// set your EThing server url here :
EThing.config.serverUrl = 'http://localhost:8000';
// using the default credentials
EThing.auth.setBasicAuth('ething', 'admin');
// list all your resources (Files, Devices, Tables ...)
EThing.list().done(function(resources){
console.log('you have got '+resources.length+' resources');
}).fail(function(err){
console.log(err);
});
0.1.26
3 years ago
0.1.25
6 years ago
0.1.23
6 years ago
0.1.22
6 years ago
0.1.21
6 years ago
0.1.20
6 years ago
0.1.19
6 years ago
0.1.17
6 years ago
0.1.16
6 years ago
0.1.15
7 years ago
0.1.14
7 years ago
0.1.13
7 years ago
0.1.12
7 years ago
0.1.11
7 years ago
0.1.10
7 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago