0.0.3 • Published 7 years ago

karmapa-api-client v0.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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