Commit c81fabc54b88c1ea28488cf3ffc7d6a99026565d

Authored by 刘炯
1 parent b3bb263e

update

01.点播云/3.5 获取存储信息.md
1 -#### 短视频入库点播云接口for app 1 +#### 获取存储信息
2 ----- 2 -----
3 #### URL: http://api.cnlive.com/open/api2/vod_epg/svInputMamForAPP 3 #### URL: http://api.cnlive.com/open/api2/vod_epg/svInputMamForAPP
4 ----- 4 -----
5 -#### 创建短视频信息进行存储  
6 ------  
7 #### 请求方式: HTTP POST 5 #### 请求方式: HTTP POST
8 ----- 6 -----
9 #### 返回格式: 200 7 #### 返回格式: 200
@@ -11,19 +9,9 @@ @@ -11,19 +9,9 @@
11 #### 请求参数说明: 9 #### 请求参数说明:
12 | 参数名 | 参数类型 | 必选 | 参数说明 | 10 | 参数名 | 参数类型 | 必选 | 参数说明 |
13 | :----------- | :------: | :------: | :------: | 11 | :----------- | :------: | :------: | :------: |
14 -| md5 | string | true | MD5 |  
15 | appId | string | true | APPID | 12 | appId | string | true | APPID |
16 -| videoKey | string | true | 短视频相对路径|  
17 -| picKey | string | false | 短视频封面相对路径|  
18 -| name | string | false | 短视频名称 |  
19 -| description| string | false | 短视频的信息描述 |  
20 -| isHorizontalScreen | int | true | 屏幕方向,0:垂直即竖屏 /1:水平即横屏 ,默认为1 |  
21 -| userId| string | true | 短视频的信息用户标识 |  
22 -| userName| string | true | 短视频的信息用户名称或昵称 |  
23 -| callBackUrl| string | false | 短视频信息回调地址 |  
24 -|storageType|int|false|存储类型 1、金山 2、七牛|  
25 -|platform_id| string | true | APP bundleID 或者是包名,平台鉴权使用|  
26 -|extensions| string | false | 扩展字段,格式 | 13 +|storageType|int|false|存储类型 1、金山 2、七牛,默认1|
  14 +|profile| string | false | 测试or生产环境 test | product,默认product |
27 |timestamp| int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 | 15 |timestamp| int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 |
28 |sign| String | true | 签名规则见 [签名详情] (http://bj.gitlab.cnlive.com/OPEN-API/WIKI/blob/master/00.%E5%85%AC%E5%85%B1%E7%BB%84%E4%BB%B6/1.1%20SHA1%E7%AD%BE%E5%90%8D.md) | 16 |sign| String | true | 签名规则见 [签名详情] (http://bj.gitlab.cnlive.com/OPEN-API/WIKI/blob/master/00.%E5%85%AC%E5%85%B1%E7%BB%84%E4%BB%B6/1.1%20SHA1%E7%AD%BE%E5%90%8D.md) |
29 17
@@ -37,30 +25,4 @@ json @@ -37,30 +25,4 @@ json
37 "videoId":"c82802df00284ca0b731f4f576c1315b" 25 "videoId":"c82802df00284ca0b731f4f576c1315b"
38 } 26 }
39 } 27 }
40 -```  
41 -  
42 -### 短视频回调 POST 请求 callBackUrl,参数:  
43 -| 参数名 | 参数类型 | 必选 | 参数说明 |  
44 -| :----------- | :------: | :------: | :------: |  
45 -| md5 | string | true | MD5 |  
46 -| appId | string | true | APPID |  
47 -| uuid | string | true | 视频标识 |  
48 -| picUrl | string | false | 图片地址|  
49 -| storageType | int | true | 存储类型1 金山,2 七牛|  
50 -| videoName | string | true | 短视频名称 |  
51 -| description| string | false | 短视频的信息描述 |  
52 -| isHorizontalScreen | int | true | 屏幕方向,0:垂直即竖屏 /1:水平即横屏 ,默认为1 |  
53 -| userId| string | false | 短视频的信息用户标识 |  
54 -| userName| string | true | 短视频的信息用户名称或昵称 |  
55 -|extensions| string | false | 扩展字段,json格式 |  
56 -|status| string | true | 1、转码中 2、审核中 3、转码失败 4、审核失败 5、上线 10、删除|  
57 -  
58 -  
59 -#### 回调返回格式:  
60 -  
61 -```json  
62 -{  
63 - "errorCode":"0",  
64 - "errorMessage":"短视频回调SP成功"  
65 -}  
66 ``` 28 ```
67 \ No newline at end of file 29 \ No newline at end of file