Skip to content
Seza edited this page Sep 12, 2011 · 10 revisions

QuickStart Guide

You can make all is possible with the API. API permit to communicate with it in XML format or JSON format.

Request are posted to the API url, generally http://www.something.com/photoblog/api/, all request and response have same headers like explain below.

JSON format

Request

{
	"method" : "...",
	"datas"  : ...
}

Valid response

{
    "status" : "valid",
    "datas"  : ...
}

Error response

{
    "status"  : "error",
    "code"    : "...",
    "message" : "..."
}

XML format

Request

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
    <method>...</method>
    <datas>...</datas>
</xml>

Valid response

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
    <status>valid</status>
    <datas>...</datas>
</xml>

Error response

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
    <status>error</status>
    <code>...</code>
    <message>...</message>
</xml>

Clone this wiki locally