An open API service indexing awesome lists of open source software.

https://github.com/monzo/gosquared

A golang gosquared client
https://github.com/monzo/gosquared

Last synced: about 1 year ago
JSON representation

A golang gosquared client

Awesome Lists containing this project

README

          

# A golang client for gosquared

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

```