This project allows you to easily and quickly host an API for redeeming TrueWallet vouchers. You only need to enter the voucher code and mobile number.
I want to create an API that can easily redeem TrueWallet vouchers and ensure fast processing speeds. To achieve this, I am using Golang to develop the project.
- Clone this project following the installation instructions.
- Setting the port in the .env file.
- Installing all the necessary packages.
- Run the program.
# Clone project
$ git clone https://github.com/jumpogpo/golang-truewallet-api.git
$ cd golang-truewallet-api
# Install packages
$ go mod download
# run
$ go run .
# build
$ go build .
- Method:
Post
- Url:
http://localhost:{port}/redeem/{angpao_code}
- Body:
{
"mobile": "phoneNumber"
}
- TrueWallet - https://www.truemoney.com/
- Golang - https://go.dev/
- Fiber - https://docs.gofiber.io/