Skip to content

Commit 44aca81

Browse files
committed
Initial commit
0 parents  commit 44aca81

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Plugin - Mailchimp to S3
2+
3+
This plugin moves data from the [Trello](https://developers.trello.com/v1.0) API to S3. Implemented for camapigns, connected-sites connected-sites-details, conversations, conversations-details, lists, lists-details, reports, reports-details.
4+
## Hooks
5+
### MailchimpHook
6+
This hook handles the authentication and request to Mailchimp. Based on [python-mailchimp](https://github.com/charlesthk/python-mailchimp)
7+
8+
### S3Hook
9+
[Core Airflow S3Hook](https://pythonhosted.org/airflow/_modules/S3_hook.html) with the standard boto dependency.
10+
11+
## Operators
12+
### MailchimpToS3Operator
13+
This operator composes the logic for this plugin. It fetches a specific endpoint and saves the result in a S3 Bucket, under a specified key, in
14+
njson format. The parameters it can accept include the following.
15+
16+
- `mailchimp_conn_id`: The Airflow id used to store the Mailchimp credentials.
17+
- `mailchimp_resource`: The mailchimp resource we are fetching data from.
18+
- `mailchimp_args`: S3 connection id from Airflow.
19+
- `s3_bucket`: The output s3 bucket.
20+
- `s3_key`: The input s3 key.
21+
- `s3_bucket`: The s3 bucket where the result should be stored

0 commit comments

Comments
 (0)