Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Config for mailchimp

Jobs that use the mailchimp adaptor may require authentication. A "credential" for the mailchimp adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"server": "us11",
"apiKey": "0eb22c7b4a1c5bcd789379bf8a92902d-us13"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"server": {
"title": "Data Center",
"type": "string",
"description": "Mailchimp Data Center for your account",
"minLength": 1,
"examples": [
"us11",
"uk8",
"in10"
]
},
"apiKey": {
"title": "API Key",
"type": "string",
"description": "Mailchimp API Key",
"writeOnly": true,
"minLength": 1,
"examples": [
"0eb22c7b4a1c5bcd789379bf8a92902d-us13"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"server",
"apiKey"
]
}