Skip to content

pedroresende/vue-json-rpc-client-fetch-withcredentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VUE-JS-JSON-RPC-CLIENT-WITHCREDENTIALS Vue.js integration

Install

$ npm install vue-json-rpc-client-fetch-withcredentials

Open you main.js file and add the following

import JsonRpcVueClient from 'vue-json-rpc-client-fetch-withcredentials'

Vue.use(JsonRpcVueClient, 'URL', 'CREDENTIALS', 'NEWHEADERS', 'DEBUG');

In your .vue file, to make a call just do it using

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

About

A simple Vue.js fetch based JSON-RPC client in ES6.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published