-
Notifications
You must be signed in to change notification settings - Fork 0
api photo path
Jay Williams edited this page Mar 7, 2012
·
8 revisions
Retrieve photo path.
require read grant access
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>{
"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>- id: The photo ID.
-
size: possible value are
original|resized|thumb.
NOTE:
resizedandthumbsize can be known by using photo.size API method.originalsize is always unknown