gg.photos.licenses.setLicense

Sets the license to the specified photo

Request URL

http://api.guregipuzkoa.net/services/rest/?method=gg.photos.licenses.setLicense

Authentication

User must use GG authentication using http://api.guregipuzkoa.net/services/rest/?method=gg.auth.getToken

Arguments

token (Required)
Your authentication token.
key (Required)
Your API application key.
photo_id (Required)
The id of the photo to get information for.
license_id (Required)
The license to apply, or 0 (zero) to remove the current license.

Example Response

<rsp stat="ok"/>
                

Error Codes

300 - Invalid Photo ID
The photo_id sent is not valid
300 - Invalid License ID
The license_id sent is not valid
700 - Invalid credentials
The given authentication values (Token or API) is invalid.
203 - Insufficient parameters
The required arguments are missing