0.6.0 • Published 11 months ago

@pomelo-io/pomelo-api v0.6.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

pomelo-api-js

Library to interact with Pomelo API

Quickstart

> npm i @pomelo-io/pomelo-api
import { createClient } from "@pomelo-io/pomelo-api"
const client = createClient( { baseUrl: "https://api.pomelo.io/v1" } );

client.on('users:progress', progress => {
    process.stdout.write('.');
});

// simple get grant request
const grant = await client.getGrant("hotsauce");

// all params - see https://api.pomelo.io/swagger/index.html
const grants = await client.raw().grants.grantsList({
    "state[]": "PUBLISHED",
    contribution_sort_context: "ROUND",
    matching_round_id: 501,
    "matching_round_state[]": "APPROVED"
});

// update auth token
client.setAuthToken("Bearer <your admin token>");

Example

> node example.js
0.6.0

11 months ago

0.5.0

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago