Reset Password
Check your e-mail for further instructions.
Reset
Name
getpubzip
Auth
no
Description
Create a zip archive file of a public link file and download it
Same as getzip, but works on public file identified by code (and fileid if link is to a folder)
Takes code and optional parameters to define a tree and streams a zip file.
The code could be obtained from:
URL
https://api.pcloud.com/getpubzip
Required
| Parameter | Description |
| code | string either 'code' or 'shortcode' |
Optional
| Parameter | Description |
| forcedownload | int If it is set, the content-type will be 'application/octet-stream', if not - 'application/zip'. |
| filename | string If it is provided, this is sent back as 'Content-Disposition' header, forcing the browser to adopt this filename when downloading the file. Filename is passed unaltered, so it MUST include the .zip extension. |
| timeoffset | string desired time offset |
Output
When successful it returns a zip archive over the current API connection with all the files and directories in the requested tree.
| Code | Description |
| 1000 | Log in required. |
| 1017 | Invalid 'folderid' provided. |
| 1018 | Invalid 'fileid' provided. |
| 1028 | Please provide link 'code'. |
| 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. |