Skip to content

CodeObia/nodejs-handle-net-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published