Create a new album
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
HTTP POSThttp://api.ipernity.com/api/album.create
Parameters
api_key
|
∗ |
Your api_key.
|
title
|
∗ |
A title for this album
|
description
|
|
A description for this album. (Some HTML tags are accepted)
|
cover_id
|
∗ |
The document Id to be used as the cover. (Must belong to the calling user)
|
perm_comment
|
|
Who can add comments to this album. Possible values are :
- 0: only you
- 1: family
- 2: friends
- 3: friends & family
- 4: contacts
- 5: everybody
|
∗ : this parameter is required.
Response
<album album_id="10552" link="http://www.ipernity.com/doc/1/album/10552"
title="My first album">
<description>Comment are welcome</description>
<visibility family="0" friend="0" ff="0" public="1"/>
<dates created_at="1218038872" comment_at="0"/>
<count docs="1" visits="0" faves="0" comments="0"/>
<cover doc_id="395557" w="75" h="75"
url="http://u1.ipernity.com/2/55/57/395557.e8265d4f.75x.jpg"/>
<can fave="1" comment="1"/>
<permissions comment="3"/>
</album>
Error codes
| 1 |
Title is missing |
| 2 |
Cover not found |
| 3 |
Can not use this cover |
| 4 |
Can't create any more albums |
|
| 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