Reset Password
Check your e-mail for further instructions.
Reset
Name
getpubtextfile
Auth
no
Description
Download a file in different character encoding The file is streamed as response to this method by the content server.
Same as gettextfile, 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/getpubaudiolink
Required
Parameter | Description |
code | string either 'code' or 'shortcode' |
Optional
Parameter | Description |
fileid | int id of the file, if the public link is to a folder |
fromencoding | string the original character encoding of the file (default: guess) |
toencoding | string requested character encoding of the output (default: utf-8) |
forcedownload | int Download with Content-Type = application/octet-stream |
contenttype | string Set Content-Type |
Code | Description |
1000 | Log in required. |
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. |
2061 | Unsupported character set in 'fromecoding' or 'toencoding'. |
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. |