mailchimp-subscribe-go

command module
v0.0.0-...-1cc9aeb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 12 Imported by: 0

README

Mailchimp Subscribe Proxy

This is a simple proxy for the mailchimp subscribe api written in Go.

We use it internally to build 'Subscribe to newsletter' functionalities to public websites.

Instructions

  1. Copy .env.example to .env or make sure to set API_KEY, LIST_ID, API_SERVER environment variables.
  2. Run go run main.go mc-api.go

There is also a Dockerfile provided.

API

The service offers two APIs:

POST /

Subscribes the provided email using the Add or update list member API of mailchimp.

Body
{
  "email": "EMAIL_TO_SUBSCRIBE"
}
GET /

Can be used to check status of the API, returns {"message": "UP"}.

License

This project is licensed under the MIT license.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL