package main
import (
"fmt"
"github.com/Noy/Myzo"
)
func main() {
auth := myzo.Myzo{ClientID: "Your ClientID",
UserID: "Your UserID",
AccessToken: "YourAccessToken",
AccountIDs: map[string]string{"Personal":"ID", "Business":"ID", "Joint":"ID"},
Debug:true}
currentAccountID := auth.AccountIDs["Personal"]
fmt.Println(auth.GetTransaction("id", "merchant", currentAccountID).Merchant)
}
// Or..
func main() {
auth := myzo.Myzo{ClientID: "Your ClientID",
UserID: "Your UserID",
AccessToken: "YourAccessToken",
AccountIDs: map[string]string{"Personal":"ID", "Business":"ID", "Joint":"ID"},
Debug:true}
currentAccountID := auth.AccountIDs["Personal"]
for _, transaction := range auth.GetAllTransactions(5, 0, "", currentAccountID) {
fmt.Println(transaction.Merchant)
}
}
-
Notifications
You must be signed in to change notification settings - Fork 1
Noy/Myzo
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Monzo Client written in Go to get all sorts of data from your account.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published