Gitcoin Javascript API Client
// import Api class
import { Api } from 'gitcoin-sdk';
const api = new Api(options);
api.bounties.all();
// import api function
import { api } from 'gitcoin-sdk';
api(options).bounties.all();
| Key | Default | Description |
|---|---|---|
| network | mainnet | etherium block chain network |
| idx_status | open | |
| order_by | -web3_created | |
| limit | None | max number of bounties return per page |
| raw_data | ||
| experience_level | ||
| project_length | ||
| bounty_type | ||
| bounty_owner_address | ||
| bounty_owner_github_username | ||
| standard_bounties_id | ||
| pk__gt | filter by PK | |
| started | filter by who is interested | |
| is_open | false | filter by is open or not |
| github_url | filter by urls | |
| fulfiller_github_username | retrieve all fullfilled bounties by fulfiller_username | |
| interested_github_username | retrieve all interested bounties by profile handle |
- Clone the repo
- Run
git clone https://github.com/gitcoinco/javascript-api-client.git cd javascript-api-client
- Build library
- Run
yarn install(recommended) ornpm installto get the project's dependencies - Run
yarn buildornpm run buildto produce minified version of your library.
- Development mode
- Having all the dependencies installed run
yarn devornpm run dev. This command will generate an non-minified version of your library and will run a watcher so you get the compilation on file change.
- Running the tests
- Run
yarn testornpm run test
yarn buildornpm run build- produces production version of your library under thelibfolderyarn devornpm run dev- produces development version of your library and runs a watcheryarn testornpm run test- well ... it runs the tests :)yarn test:watchornpm run test:watch- same as above but in a watch mode