Using xerogolang with xero.com

Go integration

Install

go get github.com/XeroAPI/xerogolang

Quick start

import "xerogolang"

// Initialize client
client := xerogolang.NewClient("YOUR_ACCESS_TOKEN")
Retrieves files
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.xero.com/files.xro/1.0/Files
Retrieves inbox folder
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.xero.com/files.xro/1.0/Inbox
Retrieves folders
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.xero.com/files.xro/1.0/Folders
SDK on GitHub 📄 API Docs
SDK
xerogolang
Go
API
xero.com
xero.com:xero_files

At a glance

Language Go
Endpoints16
Base URLhttps://api.xero.com/files.xro/1.0