karmapa-api-client

0.0.3 • Public • Published

api-client

Build Status Coverage Status Dependency Status

Installation

node:

$ npm i karmapa-api-client
import ApiClient from 'karmapa-api-client';
 
const apiClient = new ApiClient({prefix: 'https://jsonplaceholder.typicode.com'});
 
apiClient.get('/posts', {params: {page: 1}})
  .then((res) => console.log(res));
 
apiClient.post('/posts', {data: {blah: true}})
  .then((res) => console.log(res));

Readme

Keywords

none

Package Sidebar

Install

npm i karmapa-api-client

Weekly Downloads

2

Version

0.0.3

License

ISC

Last publish

Collaborators

  • kmsheng