I have tried to upload a file with pcloud (https://api.pcloud.com/uploadfile?) using this URL:
https://api.pcloud.com/uploadfile?username=myemail&password=mypassword&path=/&filename=myfile
But I get the following error:
{
"result": 0,
"metadata": [
],
"checksums": [
],
"fileids": [
]
}
this is my example code on my windows:
import requests
import json
username = 'test@gmail.com'
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)