Skip to content

Instantly share code, notes, and snippets.

@Halama
Created December 1, 2015 08:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Halama/c43a5945d6e715e2b073 to your computer and use it in GitHub Desktop.
Save Halama/c43a5945d6e715e2b073 to your computer and use it in GitHub Desktop.
Keboola Generic Extractor - Slack
{
"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