Skip to content

Instantly share code, notes, and snippets.

@odinuv
Last active April 27, 2017 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odinuv/e2cf13ae100c146dbccfc650d93aef18 to your computer and use it in GitHub Desktop.
Save odinuv/e2cf13ae100c146dbccfc650d93aef18 to your computer and use it in GitHub Desktop.
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