Add a note to a photo.
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
HTTP POSThttp://api.ipernity.com/api/doc.notes.add
Parameters
api_key
|
∗ |
Your api_key.
|
doc_id
|
∗ |
The ID of the photo you wish to add a note on.
|
content
|
∗ |
The note text. (Some HTML tags are accepted)
|
member_id
|
|
The user ID associated to this note.
|
x
|
∗ |
The left coordinate of the note.
|
y
|
∗ |
The top coordinate of the note.
|
w
|
∗ |
The width of the note.
|
h
|
∗ |
The height of the note.
|
preview
|
|
Set this flag to 1 to preview the note. The note will not be added.
|
∗ : this parameter is required.
The note coordinates are expressed in pixels. Notes are shown normally on the 560 pixel image size. If the coordinates don't match with the photo dimensions, the note will be placed at x=0, y=0, w=50, h=50. When associating a member ID to a note, the content is not required.
Response
<note note_id="58856" user_id="58565" posted_at="1216898438" x="10" y="12" w="22" h="33">Your note</note>
Error codes
| 1 |
Document not found |
| 2 |
Content is empty |
| 3 |
Member ID not found |
| 4 |
Note coordinates are invalid |
| 5 |
Maximum of notes reached |
|
| 100 |
API Key is missing |
| 101 |
API Key is invalid |
| 102 |
Invalid format |
| 103 |
Method not found |
| 104 |
Signature missing |
| 105 |
Signature is invalid |
| 106 |
Token missing |
| 107 |
Token invalid |
| 108 |
Account closed |
| 109 |
Action blocked |
| 110 |
Insufficient permissions |
| 111 |
IP not allowed |
| 112 |
Application Quota Error |
| 113 |
Client IP Quota Error |
| 120 |
HTTP POST required |
| 121 |
Invalid SOAP envelope |
| 122 |
Invalid XML-RPC envelope |
| 130 |
OAuth protocol version unsupported |
| 131 |
OAuth parameters are missing |
| 132 |
OAuth Clock skew |
| 133 |
OAuth Nonce is invalid |
| 134 |
OAuth Timestamp is invalid |
| 135 |
OAuth Signature method unsupported |
| 500 |
Service error |
| 501 |
Maintenance mode |
| 503 |
Service unavailable |
Changelog
- 2008-12-01: Method created.
See also