Skip to content

api photo config get

Alban LEROUX edited this page Sep 16, 2011 · 3 revisions

API

photo.config.get

Return the photo plugin configuration.

Request example

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

Response example

{
	"status"   : "valid",
	"response" : 
	{
		"directory" : "photos",
		"original"  : "original",
		"resized"   : "resized",
		"thumb"     : "thumb",
		"quality"   : "quality",
		"sizes"     : 
		{
			"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>
		<directory>photos</directory>
		<original>original</original>
		<resized>resized</resized>
		<thumb>thumb</thumb>
		<quality>90</quality>
		<sizes>
			<resized>
				<type>fixed</type>
				<width>600</width>
				<height>200</height>
			</resized>
			<thumb>
				<type>square</type>
				<size>150</size>
			</thumb>
		</sizes>
	</response>
</xml>

Arguments

No argument needed.

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

Return Value

directory is the main folder contains all photos

original is a sub folder of directory contains all original photos.

resized is a sub folder of directory contains all medium size photos.

thumb is a sub folder of directory contains all thumb size photos.

sizes always contains 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.

Clone this wiki locally