openload.co api的python包装器
pyopenload的Python项目详细描述
用于Openload.coAPI的python包装器。
安装
$ pip install pyopenload
用法
所有API功能都已实现。
检索帐户信息
fromopenloadimportOpenLoadol=OpenLoad('login','key')account_info=ol.account_info()print(account_info)
上传文件
fromopenloadimportOpenLoadol=OpenLoad('login','key')uploaded_file_info=ol.upload_file('/home/username/file.txt')print(uploaded_file_info)
检索文件信息
fromopenloadimportOpenLoadol=OpenLoad('login','key')# Random file id.file_id='YMTqhQAuzVX'file_info=ol.file_info(file_id)print(file_info)