Storeden Developers

Gallery API

Current version: v1.1

Upload image

POST
/gallery/image.json
base64 required (string) base64 encoded string of image
Get list of filters Request

$storeden = new Storeden\Storeden($config);

$payload = array();
$payload['base64'] = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA....';

$result = $storeden->post('/gallery/image.json', $payload);
					
Upload image Response

{
    "id": "5b59abe916f46a1845b410f0",
    "thumbnail": "https://static-cdn.storeden.com/secache/5b59abe916f46a1845b410f0",
    "original": "https://tcdn.storeden.com/gallery/5b59abe916f46a1845b410f0"
}
					

Remove image

DELETE
/gallery/image.json
id required (StoredenID) Unique image id
Remove image Request

$storeden = new Storeden\Storeden($config);
$result = $storeden->delete('/gallery/image.json', ['id' => '5b59abe916f46a1845b410f0']);
					
Remove image Response

{
    "ok": 1,
    "n": 1,
    "err": null,
    "errmsg": null
}