Return the calling user upload quota.
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
http://api.ipernity.com/api/account.getQuota
Parameters
∗ : this parameter is required.
Response
<quota user_id="1234" is_pro="1">
<upload unlimited="1">
<max bytes="10737418240" kb="10485760" mb="10240" percent="100" seconds="7200"/>
<used bytes="262144000" kb="256000" mb="250" percent="3" seconds="125"/>
<left bytes="10475274240" kb="10229760" mb="9990" percent="97" seconds="7075"/>
</upload>
<maxfilesize>
<photo bytes="104857600" kb="102400" mb="100"/>
<audio bytes="104857600" kb="102400" mb="100"/>
<video bytes="104857600" kb="102400" mb="100"/>
<other bytes="104857600" kb="102400" mb="100"/>
</maxfilesize>
<albums max="2048" created="32" left="2016">
</quota>
Only the universe is infinite. This is why an "unlimited" upload limit has an internal 10 Gig limit, automatically upgraded when reached.
Error codes
| 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.