uploadUrlFile
作用:上傳遠(yuǎn)程地址的視頻
URL
http://v.polyv.net/uc/services/rest?method=uploadUrlFile
支持格式
JSON
HTTP請(qǐng)求方式
POST,GET
請(qǐng)求數(shù)限制
TRUE
請(qǐng)求參數(shù)
必選 類型及范圍 說明
writetoken ture string 用戶的上傳鑰匙
fileName ture string 要修改的文件名
fileUrl false file 遠(yuǎn)程文件的http連接(帶http://)
注意事項(xiàng)
返回錯(cuò)誤列表
返回error狀態(tài):0無錯(cuò)誤,1找不到writetoken關(guān)聯(lián)的user,2文件為空或者writetoken為空,3提交的json名字JSONRPC為null,4提交文件格式不正確,5readtoken為空,6分頁輸入出錯(cuò),7vid不能為空,8找不到方法名
JSON示例
返回結(jié)果:
{"error":"0",
"data":
[{"vid":"********"}]
}
字段說明
#vid: 視頻ID