Skip to main content

List comments

URL: /api/blog/v1.0/blog/{blog}/posts/{post}/comments

Method: GET

Additional query parameters

Example

Example request in python:

import requests, json

response = requests.get('http://www.cryptedblog.com/api/blog/v1.0/blog/test-blog/posts/5671831268753408/comments?limit=2')
print(response)
data = response.json()
print(json.dumps(data, indent=4, sort_keys=True))

The output looks like the following:

<Response [200]>
{
    "data": [
        {
            "comment": 5737664527466496, 
            "comment-encrypted": {
                "adata": "", 
                "cipher": "aes", 
                "ct": "uwWGHQPMAjZgV47788fZgf2fxS89rt1u2JsR4mi1aWGBeYNS0paXx5I9EBbvQTlYXlTj8rtL2ghiq/6Jj74JP45sOztPm3eZmeJTYgwUTa5hkd9tNgjNm3KDwFKj3oiw+jxGIBjnef0CNsT2Ogn0pj80inBMdP5QqZBsIKbHyooEa8h4Bzv/S4p2qhyZ6LDvDCp31pMsRTW9Et5V0PMFi1AqkxA=", 
                "iter": 1000, 
                "iv": "RT8HAlWozacSer/VSD3k6w==", 
                "ks": 128, 
                "mode": "ccm", 
                "salt": "2PGABEvattA=", 
                "ts": 64, 
                "v": 1
            }, 
            "comment-url": "/api/blog/v1.0/blog/test-blog/posts/5671831268753408/comments/5737664527466496", 
            "date-time-create": "2014-07-13 19:59:17.964560", 
            "date-time-update": "2014-07-13 19:59:17.964560", 
            "post": 5671831268753408, 
            "post-url": "/api/blog/v1.0/blog/test-blog/posts/5671831268753408"
        }, 
        {
            "comment": 5717495361044480, 
            "comment-encrypted": {
                "adata": "", 
                "cipher": "aes", 
                "ct": "WVZDGvHsvL/dMLcFZE1q+/SfGZSeQ3YkujgZG8VikfxrfnMLApDbqvi0OExGVqNH7bNRSrTa6ago/a7XW1otn0PcCX3ymEcF+H4/fYehr1gZqMV/j9pfRR6Wr67dcr/o3ibM62l6ciAEh4xJq/YRu5BxN21StO50VHQ2t7Us9xEarDx9T5mb8Bjx", 
                "iter": 1000, 
                "iv": "hHm/FnKFRH3UIWMbODorqQ==", 
                "ks": 128, 
                "mode": "ccm", 
                "salt": "zAHL09U9scQ=", 
                "ts": 64, 
                "v": 1
            }, 
            "comment-url": "/api/blog/v1.0/blog/test-blog/posts/5671831268753408/comments/5717495361044480", 
            "date-time-create": "2014-07-13 19:59:22.863010", 
            "date-time-update": "2014-07-13 19:59:22.863010", 
            "post": 5671831268753408, 
            "post-url": "/api/blog/v1.0/blog/test-blog/posts/5671831268753408"
        }
    ], 
    "meta": {
        "limit": 2, 
        "limit-max": 30, 
        "offset": 0, 
        "sortorder": "asc", 
        "total": 2
    }, 
    "success": true
}