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

API

photo.path

Retreive photo path.

Request example

{
	"method" : "photo.size",
	"datas"  : ""
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<method>photo.size</method>
	<datas />
</xml>

Response example

{
	"status" : "valid",
	"datas"  : 
	{
	    "resized" : 
		{ 
			"type"   : "fixed", 
			"width"  : 600, 
			"height" : 200 
		},
		"thumb" : 
		{ 
			"type" : "square", 
			"size" : 150 
		}
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<status>valid</status>
	<datas>
		<resized>
			<type>fixed</type>
			<width>600</width>
			<height>200</height>
		</resized>
		<thumb>
			<type>square</type>
			<size>150</size>
		</thumb>
	</datas>
</xml>

Arguments

No argument needed.

NOTE: Even if no argument needed in the request the field datas still mandatory, keep it empty.

Return Value

Always return two node resized and thumd each one contains a type node

type node can be equal to: larger-border | fixed-width | fixed-height | fixed | square

All type node value are followed by a size node except fixed which is followed by width and height node

Clone this wiki locally