Make sure you have NodeJS installed on your machine.
npm install -g typescript
- npm
git clone [repo]
npm install
// set node environment var.
export NODE_ENV="staging or production"
// set api key var.
export BILLPLZ_API_SECRET_KEY="your api secret key"
npm start
- Open GraphQL Playground
http://localhost:[port]
Get a bill:
{
bill(BILL_ID: "BILL ID HERE") {
email
name
amount
description
state
paid
url
}
}
Create a collection:
mutation {
createCollection(title: "COLLECTION TITLE") {
id
}
}
Billplz Apollo is MIT - licensed.