Get document media urls (thumbs, medias, original,...).
- This method call does not require authentication.
- "read" permission is necessary to access to private docs.
URL
http://www.ipernity.com/api/doc.getMedias
Parameters
api_key
|
∗ |
Your api_key.
|
doc_id
|
∗ |
The ID of the document to get information for.
|
∗ : this parameter is required.
Response
<thumbs>
<thumb label="75x" secret="d5ea56eb" w="75" h="75"
url="http://u1.ipernity.com/1/00/01/12345.d5ea56eb.75x.jpg"/>
<thumb label="100" secret="d5ea56eb" w="100" h="90"
url="http://u1.ipernity.com/1/00/01/12345.d5ea56eb.100.jpg"/>
<thumb label="240" secret="d5ea56eb" w="240" h="120"
url="http://u1.ipernity.com/1/00/01/12345.d5ea56eb.240.jpg"/>
<thumb label="500" secret="d5ea56eb" w="500" h="400"
url="http://u1.ipernity.com/1/00/01/12345.d5ea56eb.500.jpg"/>
<thumb label="560" secret="d5ea56eb" w="560" h="420"
url="http://u1.ipernity.com/1/00/01/12345.d5ea56eb.560.jpg"/>
<thumb label="1024" secret="5dae5623" w="1024" h="900"
url="http://u1.ipernity.com/1/00/01/12345.5dae5623.1024.jpg"/>
</thumbs>
<medias>
<media label="flv" ext="flv" secret="5dae5623" w="480" h="360" lenght="120"
url="http://u1.ipernity.com/1/00/01/12345.5dae5623.flv"/>
<media label="ipod" ext="mp4" secret="5dae5623" w="480" h="272" lenght="120"
url="http://u1.ipernity.com/1/00/01/12345.5dae5623.ipod.mp4"/>
<media label="mp4" ext="mp4" secret="5dae5623" w="480" h="360" lenght="120"
url="http://u1.ipernity.com/1/00/01/12345.5dae5623.mp4"/>
<media label="hd" ext="mp4" secret="5dae5623" w="1920" h="1080" lenght="120"
url="http://u1.ipernity.com/1/00/01/12345.5dae5623.hd.mp4"/>
</medias>
<original ext="mpg" w="1024" h="900" length="120"
filename="my car.mpg" bytes="585654"
url="http://u1.ipernity.com/1/00/01/12345.253ade85.mpg"/>
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