{"id":23181196,"url":"https://github.com/joeshaw/customerio","last_synced_at":"2025-04-05T03:14:14.246Z","repository":{"id":18616388,"uuid":"21821963","full_name":"joeshaw/customerio","owner":"joeshaw","description":"A Go package for the customer.io email service","archived":false,"fork":false,"pushed_at":"2016-01-14T18:48:06.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T11:15:16.591Z","etag":null,"topics":["client-lib","customerio","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeshaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-14T14:12:51.000Z","updated_at":"2016-01-14T18:48:08.000Z","dependencies_parsed_at":"2022-09-26T21:30:56.010Z","dependency_job_id":null,"html_url":"https://github.com/joeshaw/customerio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fcustomerio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fcustomerio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fcustomerio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fcustomerio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeshaw","download_url":"https://codeload.github.com/joeshaw/customerio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280268,"owners_count":20912967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-lib","customerio","golang"],"created_at":"2024-12-18T08:14:53.664Z","updated_at":"2025-04-05T03:14:14.229Z","avatar_url":"https://github.com/joeshaw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# customerio #\n\n`customerio` is a Go package for integration with the Customer.io\nemail service.\n\n## Install ##\n\n`go get github.com/joeshaw/customerio`\n\n## API ##\n\nThe API is built on top of the\n[Customer.io REST API](http://customer.io/docs/api/rest.html).\n\nFull API docs are available on\n[godoc](http://godoc.org/github.com/joeshaw/customerio).\n\n```go\nc := customerio.Client{\n    SiteID: \"my-site-id\",\n    APIKey: \"my-api-key\",\n    HTTPClient: http.DefaultClient,\n}\n\n// Create a new customer with ID 5, email address customer@example.com,\n// and a couple custom attributes\nerr := c.Identify(\"5\", \"customer@example.com\", map[string]interface{}{\n    \"name\": \"Bob\",\n    \"plan\": \"premium\",\n})\nif err != nil {\n    // uh oh\n}\n\n// Track an event named \"purchased\" on customer ID 5, with some custom\n// event attributes.\nerr = c.Track(\"5\", \"purchased\", map[string]interface{}{\n    \"price\": 23.45,\n}\nif err != nil {\n    // uh oh\n}\n```\n\nYou may pass in a `nil` map to either `Identify` or `Track`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeshaw%2Fcustomerio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeshaw%2Fcustomerio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeshaw%2Fcustomerio/lists"}