@intactile/node-api-client

A basic node REST api client based on superagent

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@intactile/node-api-client
000.5.03 months ago6 years agoMinified + gzip package size for @intactile/node-api-client in KB

Readme

node-api-client
A basic node REST api client based on superagent.
Build Status Code Climate Test Coverage

Install

npm install @intactile/node-api-client

Usage

import ApiClient from '@intactile/node-api-client';

const apiClient = new ApiClient();
apiClient.post('users', { firstName: 'John', lastName: 'Doe'  })
  .then((response) => {
    console.log(response);
  })
  .catch((error) => {
    console.error(error);
  });