Skip to content

intactile/node-api-client

Repository files navigation

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