Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.53 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.53 KB

Xendit Go SDK

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: 6.0.0

Getting Started

Installation

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")

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