Skip to content
Alban LEROUX edited this page Feb 28, 2012 · 6 revisions

API

photo.add

Add a new photo in database.

require write grant access

Request example

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>

Response example

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

Arguments

  • file: The photo Filename on the local storage.

NOTE: The file file will be moved on its final directory.

Clone this wiki locally