The official Xendit Go SDK provides a simple and convenient way to call Xendit's REST API in applications written in Go.
- Package version: 6.0.0
Install xendit-go with:
go get github.com/xendit/xendit-go/v6
Put the package under your project folder and add the following in import:
import xendit "github.com/xendit/xendit-go/v6"
To use a proxy, set the environment variable HTTP_PROXY
:
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
The SDK needs to be instantiated using your secret API key obtained from the Xendit Dashboard. You can sign up for a free Dashboard account here.
xnd := xendit.NewClient("API-KEY")
Find detailed API information and examples for each of our product's by clicking the links below,
All URIs are relative to https://api.xendit.co. For more information about our API, please refer to https://developers.xendit.co/.
Further Reading