monzo / gosquared

A golang gosquared client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)")
}

About

A golang gosquared client

License:MIT License


Languages

Language:Go 100.0%