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 install
to get the project's dependencies - Run
yarn build
ornpm run build
to produce minified version of your library.
- Development mode
- Having all the dependencies installed run
yarn dev
ornpm 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 test
ornpm run test
yarn build
ornpm run build
- produces production version of your library under thelib
folderyarn dev
ornpm run dev
- produces development version of your library and runs a watcheryarn test
ornpm run test
- well ... it runs the tests :)yarn test:watch
ornpm run test:watch
- same as above but in a watch mode