Skip to content

Instantly share code, notes, and snippets.

@dimmduh
Created October 12, 2012 09:58
Show Gist options
  • Select an option

  • Save dimmduh/3878482 to your computer and use it in GitHub Desktop.

Select an option

Save dimmduh/3878482 to your computer and use it in GitHub Desktop.
comment-get-one
HTTP/1.1 200 OK
Date: Fri, 12 Oct 2012 09:57:57 GMT
Server: nginx/0.7.67
Content-Type: application/json; charset=utf-8
X-Powered-By: PHP/5.3.3-7+squeeze3
Via: 1.1 duhnich.in.sports.ru
Transfer-Encoding: chunked
{
"status": "success",
"data": {
"num_page": 1,
"page": 1,
"comments": [
{
"id": 142985114,
"ctime": 1346125971,
"dtime": 1346125971,
"message_id": 142966946,
"message_class": "Sports::News",
"parent_comment_id": 142985101,
"_extra": {
"body": "ой, ой, ой, ой",
"nick": "Vodolei"
},
"user_name": "[email protected]",
"user_id_old": null,
"user_id": 3831117,
"user_media": {
"photo": {
"webdav": {
"width": "200",
"filename": "/storage/simple/08/81/01/88101.3.jpeg",
"filelink": "/storage/simple/08/81/01/88101.3.jpeg",
"id": "88101",
"height": "124"
}
}
},
"rate_status_id": 6,
"user_stars": 0,
"user_premium": false,
"rate_plus": 0,
"rate_minus": 0,
"rate_total": 0,
"parent_extra": {
"body": "извините, я уже не могу вспомнить ту Панову )",
"nick": "Iva_Nova"
},
"parent_user_name": "[email protected]",
"parent_user_id_old": null,
"parent_user_id": 7726060,
"can_vote": false,
"user_avatar": "http://www.sports.ru/i/stub/avatar.jpg",
"user_link": "http://www.sports.ru/profile/3831117/",
"parent_user_link": "http://www.sports.ru/profile/7726060/",
"user_balls": 2
}
],
"paginator": false,
"service_links": {
"get": "http://duhnich.in.sports.ru/api/comment/get/",
"add": "http://duhnich.in.sports.ru/api/comment/add/html",
"update": "http://duhnich.in.sports.ru/api/comment/update/html",
"delete": "http://duhnich.in.sports.ru/api/comment/delete/"
},
"rate_bad": -3,
"rate_worst": -7,
"style": "default",
"isModerator": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment