【文件属性】:
文件名称:go-xero:Go 语言的 Xero 库
文件大小:23KB
文件格式:ZIP
更新时间:2021-06-05 13:37:45
Go
#去Xero
实现与 Xero 私有应用程序的交互。
安装
你需要已经安装了 Git 和 Go。 在你的终端中运行这个
go get github.com/arduino/go-xero
用法
在你的 Go 代码中导入它:
import (
"github.com/arduino/go-xero/xero"
"github.com/arduino/go-xero/xero/invoice"
"github.com/arduino/go-xero/xero/manual-journal"
"github.com/arduino/go-xero/xero/payment"
)
客户创建
要初始化客户端,您需要一个私钥和一个消费者密钥
keyFile , openFileErr := ioutil . ReadFile ( "privatekey.pem" )
if op
【文件预览】:
go-xero-master
----.gitignore(266B)
----LICENSE(34KB)
----xero()
--------manual-journal.go(2KB)
--------payment.go(2KB)
--------manual-journal()
--------invoice.go(4KB)
--------invoice()
--------xero.go(5KB)
--------payment()
----README.md(1KB)
----Godeps()
--------Godeps.json(216B)