Return all albums and groups the document belongs to.
- This method call does not require authentication.
- "read" permission is necessary to access to private docs.
URL
http://www.ipernity.com/api/doc.getContainers
Parameters
api_key
|
∗ |
Your api_key.
|
doc_id
|
∗ |
The ID of the document to get the containers for.
|
∗ : this parameter is required.
Response
<albums total="1">
<album album_id="10551" title="My very first album" docs="4"
cover="http://u1.ipernity.com/2/55/74/395574.a1dccd50.75x.jpg"
link="http://www.ipernity.com/doc/1/album/10551"/>
</albums>
<groups total="3" added="1" pending="1" invited="1">
<group group_id="170" title="Blue skies" docs="19"
pending="0" invited="0"
cover="http://u1.ipernity.com/p/AA/00/170/userphoto.jpg"
link="http://www.ipernity.com/group/170"/>
<group group_id="172" title="A moderated group" docs="129"
pending="1" invited="0"
cover="http://u1.ipernity.com/p/AA/00/172/userphoto.jpg"
link="http://www.ipernity.com/group/172"/>
<group group_id="213" title="Invitations only" docs="199"
pending="0" invited="1"
cover="http://u1.ipernity.com/p/AA/00/213/userphoto.jpg"
link="http://www.ipernity.com/group/213"/>
</groups>
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 |
| 500 |
Service error |
| 501 |
Maintenance mode |
| 503 |
Service unavailable |
Changelog
- 2008-12-01: Method created.
See also