Skip to content
Alban LEROUX edited this page Sep 12, 2011 · 6 revisions

Example in XML

Request

This is requesting the photo 123456 informations: title, description and publish-date

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
    <method>photo.get</method>
    <datas>
        <id>123456</id>
		<fields>title</fields>
		<fields>description</fields>
		<fields>publish-date</fields>
    </datas>
</xml>

Response

The requested datas are provided like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
    <status>valid</status> 
    <datas>
        <title>My best photo</title>
        <description>This photo was token ...</description>
        <publish-date>2011-08-24T12:33:42+01:00</publish-date>
    </datas>
</xml>

Response Error

If an error occurs like an unknow photo id:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
    <status>error</status>
    <code>no_result</code>
    <message>There is no photo corresponding to the 'id' : 123456</message>
</xml>

Clone this wiki locally