Reset Password
Check your e-mail for further instructions.
Reset
Name
getthumbslinks
Auth
yes
Description
Get a link to thumbnails of a list of files
Takes in fileids parameter coma-separated list of fileids and returns thumbs for all the files.
size, type and crop work like in getthumblink and are all the same for all files.
If you need to generate multiple thumbnails getthumbslinks is preferable than multiple calls to getthumblink (even if pipelined)
getthumbslinks connects to multiple storage serves simultaneously to generate thumbs and in most cases it is just slightly slower than a single call to getthumblink even if multiple thumbnails are requested.URL
https://api.pcloud.com/getthumbslinks
Required
Parameter | Description |
fileids | string coma-separated list of fileids |
size | string WIDTHxHEIGHT |
Optional
Parameter | Description |
crop | int If set, then the thumb will be cropped |
type | string If set to png, then the thumb will be in png format |
Output
The method returns an array thumbs with objects. Each object has result and fileid set.
If result is non-zero, error is also provided.
Otherwise path, hosts, expires and size are provided as in getfilelink.
Example
{ "result": 0, "thumbs": [ { "expires": "Thu, 03 Oct 2013 23:04:48 +0000", "size": "32x32", "result": 0, "path": "\/dFZVBFVZIpqkZIJZZdzeqC7Z3VZZmb0ZedrcUj5eXifiCM1JvlWCtfOG0zsy\/th-FileID-32x32.png", "fileid": FileID, "hosts": [ "c14.pcloud.com" ] }, ... ] }
Code | Description |
1000 | Log in required. |
1015 | Please provide valid thumb size. Width and height must be divisible either by 4 or 5 and must be between 16 and 2048 (1024 for height). |
1038 | Please provide 'fileids'. |
2000 | Log in failed. |
4000 | Too many login tries from this IP address. |