URL: /api/blog/v1.0/blog/{blog}/posts/{post}/comments/{comment}
Method: GET
Example request in python:
import requests, json
from sjcl import SJCL
response = requests.get('http://www.cryptedblog.com/api/blog/v1.0/blog/test-blog/posts/5671831268753408/comments/5737664527466496')
data = response.json()
print(json.dumps(data, indent=4, sort_keys=True))
print("decrypted-comment:", json.dumps(json.loads(SJCL().decrypt(data["data"]["comment-encrypted"], "YourSharedSecret")), indent=4, sort_keys=True))
The output looks like the following:
{
"data": {
"comment": 5737664527466496,
"comment-encrypted": {
"adata": "",
"cipher": "aes",
"ct": "tNEplTuRm3fhXan3F1EAjhAS24FNRmft6trwuPa171zwWm9AtqQtEneYcvm2Fq5pFJEYIRewuLaAiH98xrqnY+4rCe300lJeyB0fgLPJ0aZZj3EZGSGIKRX5VCaJL3R2PVGPDZejiO8CeitdclAP0ZGWqDKxnqVIgTQIBFXJfEFfk8VagOrKPPq2",
"iter": 1000,
"iv": "0Eh4kCuSLTAqkSBn0D80qQ==",
"ks": 128,
"mode": "ccm",
"salt": "sA00iw1CtlA=",
"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"
},
"success": true
}
decrypted-comment: {
"author": "Cryptedblog-Team",
"content": "Just a test comment! Click [here](http://www.cryptedblog.com) to go to the main page."
}