Xendit Go SDK
The official Xendit Go SDK provides a simple and convenient way to call Xendit's REST API in applications written in Go.
- Package version: 3.6.0
Getting Started
Installation
Install xendit-go with:
go get github.com/xendit/xendit-go/v3
Put the package under your project folder and add the following in import:
import xendit "github.com/xendit/xendit-go/v3"
To use a proxy, set the environment variable HTTP_PROXY
:
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
Authorization
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")
Documentation
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