Get all comments from the specified post
https://api.via.me/v1/posts/:id/comments?client_id=CLIENT_ID
{
"response": {
"comments": {
"items": [
{
"item": {
"created": 1334015050.781994,
"id": 22763,
"text": "Marty! What in the name of Sir Isaac H. Newton happened here? ",
"user": {
"avatar": "http://img.via.me/avatars/8745e2d0-2909-012f-4b11-1231381b0771/s125x125.jpg",
"created": 1327444481.157811,
"followed_count": 70,
"follower_count": 1139,
"id": "187m3i",
"name": "Emmit Brown",
"screen_name": "doc",
"verified": false,
"website": null
}
}
},
{
"item": {
"created": 1334006681.619098,
"id": 22702,
"text": "No! It can't be; I just sent you back to the future!",
"user": {
"avatar": "http://img.via.me/avatars/sc6oq/thumb.jpg",
"created": 1327444481.157811,,
"followed_count": 96,
"follower_count": 1748,
"id": "sc6oq",
"name": "Emmit Brown",
"screen_name": "doc",
"verified": false,
"website": null
}
}
},
{
"item": {
"created": 1334003941.820001,
"id": 22670,
"text": "No, I know; you *did* send me back to the future. But I'm back - I'm back *from* the future. ",
"user": {
"avatar": "http://img.viam.me/avatars/63dd2d10-0a6b-012f-e8bd-123138154d82/s125x125.jpg",
"created": 1323995677.826318,
"followed_count": 142,
"follower_count": 5912,
"id": "185sh6",
"name": "Marty McFly",
"screen_name": "marty",
"verified": false,
"website": null
}
}
}
],
"next": "http://api.via.me/v1/posts/mjevri/comments?access_token=ACCESS_TOKEN&before=1334003941.820001",
"previous": "http://api.via.me/v1/posts/mjevri/comments?access_token=ACCESS_TOKEN&after=1334015050.781994",
"url": "http://api.via.me/v1/posts/mjevri/comments?access_token=ACCESS_TOKEN"
}
}
}
Have the currently authenticated user leave a post on a comment
curl -F 'access_token=ACCESS_TOKEN' \
-F 'text=This+Is+My+Comment' \
https://api.via.me/v1/posts/{id}/comments
| Parameter | Description |
|---|---|
| text | The text for the comment |
Returns a HTTP status 201 on success.
Delete the a comment that was posted by the currently authenticated user.
https://api.via.me/v1/comments/{id}?access_token=ACCESS_TOKEN
Returns a HTTP status 200 on success.