Reset Password
Check your e-mail for further instructions.
Reset
This method can't be used from web applications. Referrer is restricted to pcloud.com.
Name
getpublinkdownload
Auth
no
Description
Returns link(s) where the file can be downloaded
Expects as parameter code that can be either 'code' or 'shortcode'.
The code could be obtained from:
This call is intentionally split from showpublink.
Getting download links for files you do not intend to download is considered bad behaviour.URL
https://api.pcloud.com/getpublinkdownload
Required
Parameter | Description |
code | string either 'code' or 'shortcode' |
fileid | int File id, if the link is to a folder |
Optional
Parameter | Description |
forcedownload | int Download with 'Content-Type' = 'application/octet-stream' |
contenttype | string Set 'Content-Type' |
maxspeed | int limit the download speed |
skipfilename | int include the name of the file in the generated link |
Output
Returns link(s) where the file can be downloaded (same as getfilelink hosts, path and expire are returned).
Example
{ result: 0, path: "/hash/My%20picture.jpg", expires: "Thu, 03 Oct 2013 01:06:49 +0000", hosts: [ "c63.pcloud.com", "c1.pcloud.com" ] }
Code | Description |
1000 | Log in required. |
1004 | No fileid or path provided. |
1005 | Unknown content-type requested. |
1028 | Please provide link 'code'. |
1029 | Please provide 'fileid'. |
2000 | Log in failed. |
2002 | A component of parent directory does not exist. |
2009 | File not found. |
2010 | Invalid path. |
2011 | Requested speed limit too low, see minspeed for minimum. |
4000 | Too many login tries from this IP address. |
5002 | Internal error, no servers available. Try again later. |
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. |