json-rpc-client-fetch-withcredentials

1.0.0 • Public • Published

JSON-RPC-CLIENT-FETCH-WITHCREDENTIALS

INSTALL

$ yarn add json-rpc-client-fetch-withcredentials

Open you main.js file and add the following:

import JsonRpcClient from 'json-rpc-client-fetch-withcredentials';

const client = new JsonRpcClient(<url>, <credencials>, newHeaders, debug)

client.request('method_name', {params})
.then((response) => {
    console.log(response);
})

Readme

Keywords

Package Sidebar

Install

npm i json-rpc-client-fetch-withcredentials

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

6.74 kB

Total Files

5

Last publish

Collaborators

  • pedroresende