nodejs-handle-net-client
v1.0.8
Published
Handle.net rest api client with Challenge-Response Request from Client to Server Authentication
Downloads
22
Maintainers
Readme
Nodejs handle.net client
Handle.net rest api client with Challenge-Response Request from Client to Server Authentication
Note: this still experimental repository its not tested on production
Install
$ npm install --save nodejs-handle-net-client
Usage
Javascript
var Handle = require("nodejs-handle-net-client").Handle
TypeScript
import Handle from 'nodejs-handle-net-client';
SYNOPSIS
var handleClient = new Handle('https:localhost:8000', '300:0.NA/prefix', 'privetkey.pem',true);
// list all handles
handleClient.listHandles().then(d => console.log(d)).catch(e=>console.log(e));;
// delete handle
handleClient.deleteHandle('1234').then(d => console.log(d)).catch(e=>console.log(e));
// add new handle with value of URL
handleClient.newHandle('URL').then((d) => console.log(d)).catch(e=>console.log(e));