Return permissions for a document.
- This method call must be authenticated and signed.
- "read" permission is necessary to access to private docs.
URL
http://api.ipernity.com/api/doc.getPerms
Parameters
api_key
|
∗ |
Your api_key.
|
doc_id
|
∗ |
The ID of the document to get the permissions for.
|
∗ : this parameter is required.
Response
<visibility ispublic="1" isfriend="0" isfamily="0"/>
<permissions permcomment="3" permtag="3" permtagme="3" />
<usage canfave="1" cancomment="1" cantag="1" cantagme="1" canzoom="1" candownload="0" canprint="0"/>
Error codes
| 1 |
Document not found |
|
| 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