Skip to content
Alban LEROUX edited this page Sep 23, 2011 · 3 revisions

API

photo.count

Return the number of photos in database.

Request example

{
	"method"  : "photo.count",
	"request" : 
	{
		"filter" :
		{
			"visible"               : true,
			"publish-date-interval" :
			{
				"start" : "2011-05-01T00:00:00+00:00",
				"end"   : "2011-05-31T23:59:59+00:00"  
			}
		}
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<method>photo.count</method>
	<request>
		<filter>
			<visible>true</visible>
			<publish-date-interval>
				<start>2011-05-01T00:00:00+00:00</start>
				<end>2011-05-31T23:59:59+00:00</end>
			</publish-date-interval>
		</filter>
	</request>
</xml>

Response example

{
	"status"   : "valid",
	"response" :
	{
		"total" : 12
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<status>valid</status>
	<response>
		<total>12</total>
	</response>
</xml>

Arguments

  • [filter]: filters options are visible a boolean value and publish-date-interval an associated array with two index start and end.

Return values

  • total : The number of photo
Clone this wiki locally