-
Notifications
You must be signed in to change notification settings - Fork 0
api photo size
Alban LEROUX edited this page Oct 3, 2011
·
7 revisions
Return the photo sizes configured by the photoblog user.
require read
grant access
GET http://example.com/api/get/photo.size/json/
{
"method" : "photo.size",
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<method>photo.size</method>
</xml>
{
"status" : "valid",
"response" :
{
"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>
<response>
<resized>
<type>fixed</type>
<width>600</width>
<height>200</height>
</resized>
<thumb>
<type>square</type>
<size>150</size>
</thumb>
</response>
</xml>
No argument needed.
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 are followed by a size
node except with value fixed
, followed by a width
and height
node.