-
Notifications
You must be signed in to change notification settings - Fork 0
api photo count
Alban LEROUX edited this page Sep 23, 2011
·
3 revisions
Return the number of photos in database.
{
"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>
{
"status" : "valid",
"response" :
{
"total" : 12
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<total>12</total>
</response>
</xml>
-
[filter]: filters options are
visible
a boolean value andpublish-date-interval
an associated array with two indexstart
andend
.
-
total
: The number of photo