There was an error while loading. Please reload this page.
Add a new photo in database.
require write grant access
write
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>
NOTE: The file file will be moved on its final directory.
file
Api Summary
photo.version
photo.config.get photo.config.set
photo.get photo.set photo.del photo.add photo.list photo.count photo.path photo.size
upload.init upload.send upload.end upload.max-size