-
Notifications
You must be signed in to change notification settings - Fork 0
api photo add
Alban LEROUX edited this page Feb 28, 2012
·
6 revisions
Add a new photo in database.
require write
grant access
GET http://example.com/api/get/photo.add/json/?file=/tmp/tempname-TzE24hLRdf5K.jpg
{
"method" : "photo.add",
"request" : { "file" : "/tmp/tempname-TzE24hLRdf5K.jpg" }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<method>photo.add</method>
<request>
<file>/tmp/tempname-TzE24hLRdf5K.jpg</file>
</request>
</xml>
{
"status" : "valid",
"response" : { "id" : 123456 }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<id>123456</id>
</response>
</xml>
- file: The photo Filename on the local storage.
NOTE: The file
file
will be moved on its final directory.