Skip to content
Jay Williams edited this page Mar 7, 2012 · 8 revisions

API

photo.path

Retrieve photo path.

require read grant access

Request example

GET http://example.com/api/get/photo.path/json/?id=123456&size=thumb
{
	"method"  : "photo.path",
	"request" : 
	{
		"id"   : 123456,
		"size" : "thumb"
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<method>photo.path</method>
	<request>
		<id>123456</id>
		<size>thumb</size>
	</request>
</xml>

Response example

{
	"status"   : "valid",
	"response" : 
	{
		"path" : "/var/www/photoblog/photos/thumb/AP3BJD4SIAZEOFFFFFMAZEKT.jpeg",
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<status>valid</status>
	<response>
		<path>/var/www/photoblog/photos/thumb/AP3BJD4SIAZEOFFFFFMAZEKT.jpeg</path>
	</response>
</xml>

Arguments

  • id: The photo ID.
  • size: possible value are original | resized | thumb.

NOTE:
resized and thumb size can be known by using photo.size API method. original size is always unknown

Clone this wiki locally