An Expensify API client. - by Lukas Malkmus
expensify-go is an opinionated client library for the Expensify API. I created it in order to add expenses which makes it the only method currently supported.
go get github.com/lukasmalkmus/expensify-go
// Get credentials from https://www.expensify.com/tools/integrations.
client, err := expensify.NewClient("XXX-REPLACE-ME-XXX", "XXX-REPLACE-ME-XXX")
if err != nil {
// Handle error!
}
expense := &expensify.Expense{
Merchant: "Apple Inc.",
Created: expensify.NewTime(time.Now()),
Amount: 99,
Currency: "USD",
}
res, err := client.Expense.Create(context.TODO(), "[email protected]", []*expensify.Expense{exp})
if err != nil {
// Handle error!
}
fmt.Println(res[0].TransactionID)
Feel free to submit PRs or to fill Issues. Every kind of help is appreciated.
© Lukas Malkmus, 2020
Distributed under MIT License (The MIT License
).
See LICENSE for more information.