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
- Host: GitHub
- URL: https://github.com/monzo/gosquared
- Owner: monzo
- License: mit
- Created: 2015-07-16T13:34:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T13:34:30.000Z (almost 11 years ago)
- Last Synced: 2025-02-15T04:26:10.549Z (over 1 year ago)
- Language: Go
- Size: 97.7 KB
- Stars: 2
- Watchers: 19
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)")
}
```