Skip to content

Instantly share code, notes, and snippets.

@Halama
Created July 15, 2016 13:57
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 Halama/f81d8a63781565107094c8aafe91513b to your computer and use it in GitHub Desktop.
Save Halama/f81d8a63781565107094c8aafe91513b to your computer and use it in GitHub Desktop.
{
"parameters": {
"api": {
"baseUrl": "https:\/\/api.intercom.io",
"authentication": {
"type": "basic"
},
"http": {
"defaultOptions": {
"headers": {
"Accept": "application\/json"
}
}
},
"pagination": {
"method": "pagenum",
"pageParam": "page",
"limit": "50",
"limitParam": "per_page"
}
},
"config": {
"outputBucket": "intercom",
"username": "",
"#password": "YOUR_PASSWORD",
"jobs": [
{
"endpoint": "users",
"children": [
{
"endpoint": "notes?user_id={1:user_id}",
"placeholders": {
"1:user_id": "user_id"
},
"recursionFilter": "user_id!=&email!="
},
{
"endpoint": "events?user_id={1:user_id}&type=user",
"placeholders": {
"1:user_id": "user_id"
},
"recursionFilter": "user_id!=&email!="
}
]
},
{
"endpoint": "contacts"
},
{
"endpoint": "companies"
},
{
"endpoint": "admins"
},
{
"endpoint": "tags"
},
{
"endpoint": "segments"
},
{
"endpoint": "conversations",
"children": [
{
"endpoint": "conversations/{1:id}",
"dataField": ".",
"placeholders": {
"1:id": "id"
}
}
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment