chargify-rest

1.0.6 • Public • Published

Chagify API

This library is used to access Chagify API with GET, POST, PUT, and DELETE methods.

Usage

ES5

    var chargify_rest = require('chargify_rest');
    var chargify_rest_client = new chargify_rest.chargify('SUBDOMAIN', 'API_KEY');

ES6

    import { chargify } from 'chargify_rest';
    const chargify_rest_client = new chargify('SUBDOMAIN', 'API_KEY');

Method Usage

GET

chargify_rest_client.get('url')
    .then(function(res) {})
    .catch(function(err) {});

POST

chargify_rest_client.post('url', data)
    .then(function(res) {})
    .catch(function(err) {});

/chargify-rest/

    Package Sidebar

    Install

    npm i chargify-rest

    Weekly Downloads

    1

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    29.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • myd