Reset Password
Check your e-mail for further instructions.
Reset
Name
getpubthumbslinks
Auth
no
Description
Get a link to a thumbnatil of a public file
Same as getthumbslinks, but works on public file identified by code (and fileid if link is to a folder)
The code could be obtained from:
URL
https://api.pcloud.com/getpubthumbslinks
Required
| Parameter | Description |
| code | string either 'code' or 'shortcode' |
| fileid | int id of the file for thumb, if the link is to folder |
| 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 |
| 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). |
| 1028 | Please provide link 'code'. |
| 1038 | Please provide 'fileids'. |
| 2000 | Log in failed. |
| 4000 | Too many login tries from this IP address. |
| 7001 | Invalid link 'code'. |
| 7002 | This link is deleted by the owner. |
| 7004 | This link has expired. |
| 7005 | This link has reached its traffic limit. |
| 7006 | This link has reached maximum downloads. |