Created
November 11, 2015 18:10
-
-
Save ctrlaltdylan/dbe9b83a19a0f2dff29b to your computer and use it in GitHub Desktop.
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
{ | |
"name": "Intercom API (Event)", | |
"description": "The Intercom API (Event)", | |
"operations": { | |
"createEvent": { | |
"httpMethod": "POST", | |
"parameters": { | |
"created_at": { | |
"format": "timestamp", | |
"location": "json", | |
"required": true, | |
"type": "integer" | |
}, | |
"email": { | |
"location": "json", | |
"required": false, | |
"type": "string" | |
}, | |
"event_name": { | |
"location": "json", | |
"required": true, | |
"type": "string" | |
}, | |
"metadata": { | |
"location": "json", | |
"required": false, | |
"type": "array", | |
"filters": [ | |
{ | |
"method": "Intercom\\IntercomBasicAuthClient::filterEmptyList", | |
"args": ["@value"] | |
} | |
] | |
}, | |
"user_id": { | |
"location": "json", | |
"required": false, | |
"type": "string" | |
} | |
}, | |
"summary": "Records an event", | |
"uri": "/events" | |
}, | |
"bulkEvents": { | |
"httpMethod": "POST", | |
"parameters": { | |
"items": { | |
"location": "json", | |
"required": true, | |
"type": "array" | |
}, | |
"job": { | |
"location": "json", | |
"required": false, | |
"type": "object" | |
} | |
}, | |
"responseClass": "JobModel", | |
"responseType": "model", | |
"summary": "Creates or updates events in bulk, asynchronously", | |
"uri": "/bulk/events" | |
}, | |
"getUserEvents": { | |
"extends": "_abstract_pagination_page", | |
"httpMethod": "GET", | |
"parameters": { | |
"type": { | |
"location": "uri", | |
"required": true, | |
"type": "string" | |
}, | |
"email": { | |
"location": "uri", | |
"required": false, | |
"type": "string" | |
}, | |
"user_id": { | |
"location": "uri", | |
"required": false, | |
"type": "string" | |
}, | |
"per_page": { | |
"location": "uri", | |
"required": false, | |
"type": "integer" | |
}, | |
"intercom_user_id": { | |
"location": "uri", | |
"required": false, | |
"type": "string" | |
} | |
}, | |
"summary": "Retrieves a listing of a user's events.", | |
"uri": "/events", | |
"responseClass": "EventListModel", | |
"responseType": "model" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment