Instantly share code, notes, and snippets.

@odinuv /config.json
Last active Apr 27, 2017

Embed
What would you like to do?
This Generic Extractor (https://developers.keboola.com/extend/generic-extractor/) configuration for Collabim (http://www.collabim.cz/api) enables you to get your projects, associated keywords and their position for the current day (you need to incrementally write data to another table to keep the history, as the extractor will overwrite the data…
{
"parameters": {
"api": {
"baseUrl": "https://api.oncollabim.com/",
"pagination": {
"method": "pagenum"
}
},
"config": {
"debug": true,
"http": {
"headers": {
"Accept": "application/json",
"Authorization": {
"attr": "#token"
}
}
},
"#token": "YOUR-COLLABIM-TOKEN",
"jobs": [{
"endpoint": "projects",
"dataType": "projects",
"dataField": "data",
"children": [{
"endpoint": "keywords?projectId={projectId}",
"dataType": "keywords",
"dataField": "data",
"placeholders": {
"projectId": "id"
},
"recursionFilter": "active==1"
}]
}]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment