Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.05 KB

Examples of an A-CUBE webhook server written in Typescript and bash scripts to use A-CUBE APIs

A-CUBE webhook server

This project is a sample implementation of a webhook that checks the validity of A-Cube signature.

To run it, first install dependencies with

npm install

Compile Typescript code with

npx tsc

Then start the server with

npm start

The server should now be running on port 3000.

Sample scripts

Bash

In the /scripts folder you can find some bash scripts to connect to A-CUBE APIs. To use them copy .env file into .env.local and change the values as needed. To run most of these scripts you need to install jq.

Ruby

There is also a Ruby example that you can run with:

ruby ./scripts/script.rb <a_fiscal_id>

Python

You can find a Python example as well. Run it with:

python3 ./scripts/script.py <a_fiscal_id>