modulepackage
0.0.0-20200417124117-ccd242db3655
Repository: https://github.com/ory/gochimp3.git
Documentation: pkg.go.dev
# README
gochimp3
Introduction
Golang client for MailChimp API 3.0.
Install
Install with go get
:
$ go get github.com/hanzoai/gochimp3
Usage
package main
import (
"fmt"
"os"
"github.com/hanzoai/gochimp3"
)
const (
apiKey = "f6f6eb412g2b9677b00550d14d86db5e-us4"
)
func main() {
client := gochimp3.New(apiKey)
// Fetch list
list, err := client.GetList("28a3d7a5", nil)
if err != nil {
fmt.Println("Failed to get list '%s'", listId)
os.Exit(1)
}
// Add subscriber
req := &gochimp3.MemberRequest{
EmailAddress: "[email protected]",
Status: "subscribed",
}
if _, err := list.CreateMember(req); err != nil {
fmt.Println("Failed to subscribe '%s'", req.EmailAddress)
os.Exit(1)
}
}
# Functions
New creates a API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
deprecated by mailchimp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
URIFormat defines the endpoint for a single app.
Version the latest API version.
# Variables
DatacenterRegex defines which datacenter to hit.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
Address represents what it says.
API represents the origin of the API.
APIError is what the what the api returns on error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BasicQueryParams basic filter queries.
No description provided by the author
No description provided by the author
No description provided by the author
------------------------------------------------------------------------------------------------ Batch subscribe list members ------------------------------------------------------------------------------------------------.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Contact defines a single contact.
Customer defines a mailchimp customer.
No description provided by the author
ExtendedQueryParams includes a count and offset.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LineItem defines a mailchimp cart or order line item.
Link refereneces another object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
------------------------------------------------------------------------------------------------ Products ------------------------------------------------------------------------------------------------.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RootResponse - https://developer.mailchimp.com/documentation/mailchimp/reference/root/#read-get_root.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SegmentBatchError contains errors returned from batch modifying a static segment.
SegmentBatchRequest represents arguments for bach modifying a static segment.
SegmentBatchResponse is the object returned by MailChimp from a request to batch modify a static segment.
SegmentConditional represents parameters to filter by.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
------------------------------------------------------------------------------------------------ Variants ------------------------------------------------------------------------------------------------.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
QueryParams defines the different params.