Skip to content

Commit c1876d0

Browse files
committed
Merge pull request #116 from intercom/RuairiK/bulk_api_docs
Update docs
2 parents 0f950af + 4643c6c commit c1876d0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,4 +554,27 @@ $result = $intercom->bulkUsers(
554554
...
555555
]
556556
]);
557+
558+
// Create or update a batch of events
559+
$result = $intercom->bulkEvents(
560+
[
561+
'items' => [
562+
[
563+
'data_type' => 'event',
564+
'method' => 'post',
565+
'data' => [
566+
"event_name": "invited-friend",
567+
"created_at": 1438944979,
568+
"user_id": "314159"
569+
]
570+
],
571+
...
572+
]
573+
]);
574+
575+
//Get bulk job info
576+
$result = $intercom->getJob(['id' => 'job_5ca1ab1eca11ab1e'])
577+
578+
//Get bulk job errors
579+
$result = $intercom->getJobErrors(['id' => 'job_5ca1ab1eca11ab1e'])
557580
```

0 commit comments

Comments
 (0)