Skip to content

monzo/gosquared

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

A golang client for gosquared

package main

import (
        "github.com/mondough/gosquared"
)

type ExampleEventData struct {
        NumTransactions int
        Type string
        Tags []string
}

func main() {
        client := gosquared.NewClient("apiKey", "siteToken")
        data := &ExampleEventData{
                NumTransactions: 102,
                Type: "foo",
                Tags: []string{ "bar", "foobar"},
        }
        client.Event("event name", data, "personId (can be blank)")
}

Releases

No releases published

Packages

No packages published

Languages