Knowledge Base: favourites.add_image

favourites.add_image

HTTP Method: POST
Parameters: api_key, user_token, token
Optional Paramters: none

Adds an image to the users favourites.

Required Parameters

api_key:    API token for your client.
user_token: The users token, received after the user logs in.
token:      The token for the image. [string]

Usage

Simply send a HTTP POST containing the above parameters in the body.

https://api.emberapp.com/favourites/add_image

Response

On success: HTTP 200 response.
On failure: HTTP 400 response plus an array of errors.

Example Successful XML Response

<?xml version="1.0"?>
<response>
    <status code="0">OK</status>
    <api>api.individual.add_image</api>
</response>

Example Unsuccessful XML Response

<?xml version="1.0"?>
<response>
    <status code="1">FAIL</status>
    <api>api.favourites.add_image</api>
    <errors>
        <image_id>This image has already been added to your favourites.</image_id>
    </errors>
</response>