0
我一直在使用這個網址嘗試上傳pcloud文件(https://api.pcloud.com/uploadfile):PCloud阿比Uploadfile與Python
https://api.pcloud.com/uploadfile?username=myemail&password=mypassword&path=/&filename=myfile
,但我得到了以下錯誤:
{
"result": 0,
"metadata": [
],
"checksums": [
],
"fileids": [
]
}
這是我的Windows上的示例代碼:
import requests
import json
username = '[email protected]'
password = 'mypassword'
myfile = r'd:\MUSIC\Get Lucky\01 - Border Reiver.mp3'
url = "https://api.pcloud.com/uploadfile?username=%s&password=%s&path=/&filename=%s" % (username, password, myfile)
get = requests.get(url)
print json.loads(get.text)
因此,我們實際上需要更多信息。您的代碼示例可能非常有用。 – Paul
我已編輯我的問題,任何想法,謝謝 –