* 1058 source mailchimp - fix the way request params are built * auto-bump connector version Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
115 lines
3.4 KiB
JSON
115 lines
3.4 KiB
JSON
{
|
|
"documentationUrl": "https://docs.airbyte.com/integrations/sources/mailchimp",
|
|
"connectionSpecification": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Mailchimp Spec",
|
|
"type": "object",
|
|
"required": [],
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"credentials": {
|
|
"type": "object",
|
|
"title": "Authentication",
|
|
"oneOf": [
|
|
{
|
|
"title": "OAuth2.0",
|
|
"type": "object",
|
|
"required": ["auth_type", "access_token"],
|
|
"properties": {
|
|
"auth_type": {
|
|
"type": "string",
|
|
"const": "oauth2.0",
|
|
"order": 0
|
|
},
|
|
"client_id": {
|
|
"title": "Client ID",
|
|
"type": "string",
|
|
"description": "The Client ID of your OAuth application.",
|
|
"airbyte_secret": true
|
|
},
|
|
"client_secret": {
|
|
"title": "Client Secret",
|
|
"type": "string",
|
|
"description": "The Client Secret of your OAuth application.",
|
|
"airbyte_secret": true
|
|
},
|
|
"access_token": {
|
|
"title": "Access Token",
|
|
"type": "string",
|
|
"description": "An access token generated using the above client ID and secret.",
|
|
"airbyte_secret": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"title": "API Key",
|
|
"required": ["auth_type", "apikey"],
|
|
"properties": {
|
|
"auth_type": {
|
|
"type": "string",
|
|
"const": "apikey",
|
|
"order": 1
|
|
},
|
|
"apikey": {
|
|
"type": "string",
|
|
"title": "API Key",
|
|
"description": "Mailchimp API Key. See the <a href=\"https://docs.airbyte.com/integrations/sources/mailchimp\">docs</a> for information on how to generate this key.",
|
|
"airbyte_secret": true
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"campaign_id": {
|
|
"type": "string",
|
|
"title": "ID of a campaign to sync email activities",
|
|
"airbyte_hidden": true
|
|
}
|
|
}
|
|
},
|
|
"advanced_auth": {
|
|
"auth_flow_type": "oauth2.0",
|
|
"predicate_key": ["credentials", "auth_type"],
|
|
"predicate_value": "oauth2.0",
|
|
"oauth_config_specification": {
|
|
"complete_oauth_output_specification": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string",
|
|
"path_in_connector_config": ["credentials", "access_token"]
|
|
}
|
|
}
|
|
},
|
|
"complete_oauth_server_input_specification": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"client_id": {
|
|
"type": "string"
|
|
},
|
|
"client_secret": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"complete_oauth_server_output_specification": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"client_id": {
|
|
"type": "string",
|
|
"path_in_connector_config": ["credentials", "client_id"]
|
|
},
|
|
"client_secret": {
|
|
"type": "string",
|
|
"path_in_connector_config": ["credentials", "client_secret"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|