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)
}
}
noy / myzo Goto Github PK
View Code? Open in Web Editor NEWA Monzo Client written in Go to get all sorts of data from your account.