Skip to content

Vero client for Golang

License

Notifications You must be signed in to change notification settings

uniplaces/vero-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vero-go

Basic Golang client for Vero developed at Uniplaces

Usage

Import

import "github.com/uniplaces/vero-go/vero"

Setup

client := vero.NewClient("YOUR_AUTH_TOKEN")

Basic usage

// Identify
data := make(map[string]interface{})
data["First name"] = "Jeff"
data["Last name"] = "Kane"
 
email := "[email protected]"
 
client.Identify("1234567890", data, &email)
 
// Unsubscribe
client.Usubscribe("1234567890")
 
// Tags
add := []string{"Blog reader"}
remove := []string{}
                
client.Tags("1234567890", add, remove)