Created
December 1, 2015 08:37
-
-
Save Halama/c43a5945d6e715e2b073 to your computer and use it in GitHub Desktop.
Keboola Generic Extractor - Slack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parameters": { | |
"api": { | |
"baseUrl": "https://slack.com/api/" | |
}, | |
"config": { | |
"outputBucket": "slack", | |
"debug": true, | |
"jobs": [ | |
{ | |
"endpoint": "users.list?token=SLACK_TOKEN", | |
"dataType": "users", | |
"dataField": "members" | |
}, | |
{ | |
"endpoint": "channels.list?token=SLACK_TOKEN", | |
"dataType": "channels", | |
"dataField": "channels", | |
"children": [ | |
{ | |
"endpoint": "channels.history?token=SLACK_TOKEN&channel={id}&count=1000", | |
"placeholders": { | |
"id": "id" | |
}, | |
"dataType": "messages", | |
"dataField": "messages" | |
} | |
] | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment