polyv python sdk示例代码
polyv-python-sdk演示代码
from polyvSDK import *
polyvSDK = PolyvSDK(readtoken=READTOKEN, writetoken=WRITETOKEN, privatekey=PRIVATEKEY, sign=True)
# 上传本地视频文件
polyvSDK.uploadfile('title1', 'desc1', 'tag1', '/path/demo.mp4')
# 根据vid获取视频信息
result = polyvSDK.getById('5e9e0e9c30f551262f6b52c53548d310_5')
print(result['swf_link'])
# 加载最新视频列表