-
Notifications
You must be signed in to change notification settings - Fork 22
Retrieve comments
Onur Akpolat edited this page Nov 4, 2016
·
1 revision
Retrieve all comments of an object.
Endpoint
GET https://api.tapglue.com/0.4/posts/:PostID/comments
Example
curl https://api.tapglue.com/0.4/posts/:PostID/comments \
-u APP_TOKEN:SESSION_TOKEN \
-H 'Accept: application/json' \
-H "User-Agent: Tapglue Test UA"
Response
{
"comments": [
{
"contents": {
"en": "Do like."
},
"id": "14452197563567333",
"post_id": "14452165116431589",
"user_id": "13336886126842393",
"created_at": "2015-12-09T10:56:41.021682044Z",
"updated_at": "2015-12-09T10:56:41.021682326Z"
}
],
"comments_count": 1,
"users": {
"13336886126842393": {
"id": 13336886126842392,
"user_name": "Username",
"first_name": "First",
"last_name": "Last",
"email": "email@mail.com",
"last_login": "2015-12-01T18:17:25.068409696Z",
"metadata": {
"key": "value"
},
"created_at": "2015-12-01T18:17:03.755500242Z",
"updated_at": "2015-12-01T18:17:25.068412069Z",
"enabled": true
}
},
"users_count": 1
}