3.1.1 • Published 3 years ago

@dosomething/gateway v3.1.1

Weekly downloads
17
License
MIT
Repository
-
Last release
3 years ago

Gateway (JS)

This is a simple JavaScript API client for DoSomething.org service, modeled after the Gateway PHP API client.

Installation

Install your own copy of Gateway JS using npm:

npm install @dosomething/gateway --save

Browser

Include the bundled dist/gateway.js in your page, or require it using a module bundler.

Server

  • Set valid ENV variables in your project. See: .env.example.
  • Require the server module @dosomething/gateway/server.

Usage

/**
 * Browser
 * somefile.js
 */

import { RestApiClient, PhoenixAshes } from '@dosomething/gateway';

console.log(new RestApiClient());
console.log(new PhoenixAshes());


/**
 * Server
 * somefile.js
 */

 const { GatewayClient } = require('@dosomething/gateway/server');

 const gatewayClient = GatewayClient.getNewInstance();
3.1.1

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.5.0

5 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.6

6 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago