curl --request POST \
--url https://apix.us.amity.co/api/v1/analytics/activities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"activities": [
{
"contentId": "60e4b1b4b3b2b5c4c4b3b2b5",
"contentType": "post",
"activityType": "view",
"timestamp": "2017-07-21T17:32:28Z"
}
]
}
'{
"status": "error",
"code": 400000,
"message": "Bad Request."
}Send a batch of analytic activities to the server, currently only support viewing post/story and story link clicked activities.
impression and reach of the post/story will be updated list of users from /api/v1/analytics/views/posts/{postId}/users will be updated too. (but not immediately)curl --request POST \
--url https://apix.us.amity.co/api/v1/analytics/activities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"activities": [
{
"contentId": "60e4b1b4b3b2b5c4c4b3b2b5",
"contentType": "post",
"activityType": "view",
"timestamp": "2017-07-21T17:32:28Z"
}
]
}
'{
"status": "error",
"code": 400000,
"message": "Bad Request."
}