| | 1 | = zooomr.photos.licenses.setLicense = |
|---|
| | 2 | |
|---|
| | 3 | Sets the license for a photo. |
|---|
| | 4 | |
|---|
| | 5 | === Authentication === |
|---|
| | 6 | |
|---|
| | 7 | This method requires authentication with 'write' permission. |
|---|
| | 8 | |
|---|
| | 9 | Note: This method requires an HTTP POST request. |
|---|
| | 10 | |
|---|
| | 11 | === Arguments === |
|---|
| | 12 | |
|---|
| | 13 | api_key (Required) |
|---|
| | 14 | Your API application key. |
|---|
| | 15 | photo_id (Required) |
|---|
| | 16 | The photo to update the license for. |
|---|
| | 17 | license_id (Required) |
|---|
| | 18 | The license to apply |
|---|
| | 19 | * 0 (zero) to remove the current license - aka "All Rights Reserved" |
|---|
| | 20 | * 1 Attribution License |
|---|
| | 21 | * 2 Attribution No-Derivs License |
|---|
| | 22 | * 3 Attribution Non-Commercial No-Derivs License |
|---|
| | 23 | * 4 Attribution Non-Commercial License |
|---|
| | 24 | * 5 Attribution Non-Commercial ShareAlike License |
|---|
| | 25 | * 6 Attribution-ShareAlike License |
|---|
| | 26 | |
|---|
| | 27 | |
|---|
| | 28 | === Example Response === |
|---|
| | 29 | {{{ |
|---|
| | 30 | {"stat": "ok"} |
|---|
| | 31 | }}} |