Hi all,
I am having an issue with customer creation through Track API.
I’m using official Go SDK. Everything seems okay, have checked credentials as well. I get the 200 success response. But I’m not seeing any customers on my customer.io workspace.
I am unable to identify the issue. Does anyone know what might me the thing I am missing?
Thanks in advance.
package main
import (
"github.com/customerio/go-customerio/v3"
"log"
"time"
)
func main() {
sId := "MY_ID_CENSORED"
aKey := "MY_KEY_CENSORED"
track := customerio.NewTrackClient(sId, aKey, customerio.WithRegion(customerio.RegionUS))
data := map:string]interface{}{
"email": "askeraliyev24@example.com",
"created_at": time.Now().Unix(),
"first_name": "Asker",
}
if err := track.Identify("215", data); err != nil {
log.Println(err.Error())
}
}