Skip to main content

Blog data

URL: /api/blog/v1.0/blog/{blog}

Method: GET

Additional query parameters

Example

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')

data = response.json()
print(json.dumps(data, indent=4, sort_keys=True))
print("decrypted-blog:", json.dumps(json.loads(SJCL().decrypt(data["data"]["blog-encrypted"], "YourSharedSecret")), indent=4, sort_keys=True))

The output looks like the following:

{
    "data": {
        "blog": "test-blog", 
        "blog-encrypted": {
            "adata": "", 
            "cipher": "aes", 
            "ct": "bUDLi2zqkywrJ9YoZu/OOaCSYYX9b67oXWe6w8TQKKh+XK+BZa5GQ8w5pP9e/J1tIJiCDmw5ex91OlAAxHvhAD2vpJ4PbYWEQfQcuHnJSNL/I6we28Q5L29qL8Qow6CPy7oQaTjZSujIxm2yYLP5MHXmrSwjGwkDfkIzfSEqWizY3W3AJAesMKvMOR4lx0YwpywdWj9P4UHEcYrkf54V9F6kln3iNtorUd0SKhh8bnU=", 
            "iter": 1000, 
            "iv": "eQI4s9mdKyBUUslOm2r2Mw==", 
            "ks": 128, 
            "mode": "ccm", 
            "salt": "JKvXMdHaYbk=", 
            "ts": 64, 
            "v": 1
        }, 
        "blog-url": "/api/blog/v1.0/blog/test-blog", 
        "create-comments": true, 
        "create-posts": true, 
        "date-time-create": "2014-07-13 19:59:11.246890", 
        "date-time-update": "2014-07-13 19:59:11.246890", 
        "edit-without-password": true, 
        "max-size-comment": 100000, 
        "max-size-images": 2000000, 
        "max-size-post": 100000
    }, 
    "success": true
}
decrypted-blog: {
    "description": "This is the encrypted test blog.", 
    "language": "en", 
    "timezone": "Europe/Berlin", 
    "title": "Test blog", 
    "write-id": "7e5f3ce982194fff914029dbab29fa70"
}