{"id":20263238,"url":"https://github.com/hanzoai/gochimp3","last_synced_at":"2025-04-04T06:06:43.683Z","repository":{"id":53748914,"uuid":"67074868","full_name":"hanzoai/gochimp3","owner":"hanzoai","description":"🐒 Golang client for MailChimp API 3.0.","archived":false,"fork":false,"pushed_at":"2024-11-27T05:40:40.000Z","size":75,"stargazers_count":66,"open_issues_count":13,"forks_count":81,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-28T05:09:28.918Z","etag":null,"topics":["api","client","golang","golang-client","mailchimp"],"latest_commit_sha":null,"homepage":"https://github.com/zeekay/gochimp3","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/hanzoai.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":"2016-08-31T21:30:42.000Z","updated_at":"2025-02-13T02:56:11.000Z","dependencies_parsed_at":"2023-01-20T08:30:21.964Z","dependency_job_id":null,"html_url":"https://github.com/hanzoai/gochimp3","commit_stats":null,"previous_names":["zeekay/gochimp3","hanzo-io/gochimp3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fgochimp3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fgochimp3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fgochimp3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanzoai%2Fgochimp3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanzoai","download_url":"https://codeload.github.com/hanzoai/gochimp3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128744,"owners_count":20888235,"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":["api","client","golang","golang-client","mailchimp"],"created_at":"2024-11-14T11:34:08.180Z","updated_at":"2025-04-04T06:06:43.666Z","avatar_url":"https://github.com/hanzoai.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gochimp3\n[![GoDoc][godoc-img]][godoc-url] [![Build Status][travis-img]][travis-url] [![Gitter chat][gitter-img]][gitter-url]\n\n## Introduction\nGolang client for [MailChimp API 3.0](http://developer.mailchimp.com/documentation/mailchimp/).\n\n## Install\nInstall with `go get`:\n\n```bash\n$ go get github.com/hanzoai/gochimp3\n```\n\n## Usage\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/hanzoai/gochimp3\"\n)\n\nconst (\n\tapiKey = \"YOUR_API_KEY_HERE\"\n)\n\nfunc main() {\n\tclient := gochimp3.New(apiKey)\n\n\t// Audience ID\n\t// https://mailchimp.com/help/find-audience-id/\n\tlistID := \"7f12f9b3fz\"\n\n\t// Fetch list\n\tlist, err := client.GetList(listID, nil)\n\tif err != nil {\n\t\tfmt.Printf(\"Failed to get list %s\", listID)\n\t\tos.Exit(1)\n\t}\n\n\t// Add subscriber\n\treq := \u0026gochimp3.MemberRequest{\n\t\tEmailAddress: \"test@mail.com\",\n\t\tStatus:       \"subscribed\",\n\t}\n\n\tif _, err := list.CreateMember(req); err != nil {\n\t\tfmt.Printf(\"Failed to subscribe %s\", req.EmailAddress)\n\t\tos.Exit(1)\n\t}\n}\n```\n\n### Set Timeout\n``` go\nclient := gochimp3.New(apiKey)\nclient.Timeout = (5 * time.Second)\n```\n\n[godoc-img]:      https://godoc.org/github.com/hanzoai/gochimp3?status.svg\n[godoc-url]:      https://godoc.org/github.com/hanzoai/gochimp3\n[travis-img]:     https://img.shields.io/travis/hanzoai/gochimp3.svg\n[travis-url]:     https://travis-ci.org/hanzoai/gochimp3\n[gitter-img]:     https://badges.gitter.im/join-chat.svg\n[gitter-url]:     https://gitter.im/hanzoai/chat\n\n\u003c!-- not used --\u003e\n[coveralls-img]:    https://coveralls.io/repos/hanzoai/gochimp3/badge.svg?branch=master\u0026service=github\n[coveralls-url]:    https://coveralls.io/github/hanzoai/gochimp3?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanzoai%2Fgochimp3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanzoai%2Fgochimp3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanzoai%2Fgochimp3/lists"}