Based on BILLPLZ v3 and v4 API.
Make sure you have NodeJS installed on your machine.
- npm
git clone https://github.com/Akim95/billplz-graphql.git
npm install
- yarn
git clone https://github.com/Akim95/billplz-graphql.git
yarn install
- GO TO Staging settings or Production settings.
- Copy
API SECRET KEY.
// 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
npm run build
- Open url
http://localhost:3000/graphql
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
}
}
Check at Documentation Explorer for more references.
Billplz GraphQL Server is MIT- licensed.
