我正试图编写一个Python脚本来与pCloudy的API一起工作,以便自动上传APK并在设备上运行它们。目前,我正试图上传一个apk,我遇到了错误404
片段
try:
files_data = {'file':open('./temp.apk','rb'),'source_type':'raw','token':user_token,'filter':'all'}
except FileNotFoundError:
print('unable to open the local file for uploading.')
files_response = requests.post('https://device.pcloudy.com/api/upload_file',files = files_data)
files_response_data = files_response.json()
print(files_response_data)
但我会把这个作为回应
{'result': {'error': '404'}}
任何来自熟悉使用pCloudy的人的建议都将不胜感激
参考资料
https://content.pcloudy.com/apidocs/index.html?shell#introduction
https://github.com/pankyopkey/pCloudy-sample-projects/blob/master/Python/AndroidNative/Controller.py
目前没有回答
相关问题 更多 >
编程相关推荐