感谢您的反馈!
批量按照直播间ID查询直播元数据
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
live_ids | String [] | 可选 | 1,2,3 |
|
直播间ID |
source | String | 可选 | top |
|
来源自定义 |
type | String [] | 可选 | 1,2,5 |
|
类型 1直播元数据 2主播数据 5在线 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 接口返回model | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); LiveBatchlivesGetRequest req = new LiveBatchlivesGetRequest(); req.setLiveIds("1,2,3"); req.setSource("top"); req.setType("1,2,5"); LiveBatchlivesGetResponse rsp = client.execute(req); System.out.println(rsp.getBody());
<live_batchlives_get_response> <result> <error_code>"isv.invalid-parameter"</error_code> <info>成功</info> <live_list> <live_video_do> <account_id>111</account_id> <appointment_time>112222</appointment_time> <approval>1</approval> <biz_code>TAOBAO</biz_code> <cover_img>http://XX</cover_img> <cover_img169>http://XX</cover_img169> <cover_img916>http://XX</cover_img916> <desc_info>直播</desc_info> <end_time>1222</end_time> <expired>true</expired> <favor_img>http://XX</favor_img> <gmt_create_time>1</gmt_create_time> <gmt_modify_time>2</gmt_modify_time> <id>1</id> <join_count>333</join_count> <land_scape>false</land_scape> <live_channel_id>4</live_channel_id> <live_column_id>5</live_column_id> <live_id>1</live_id> <live_url>http://XX</live_url> <live_url_hls>http://XX</live_url_hls> <live_url_list> <live_url_do> <code_level>1</code_level> <definition>ld</definition> <flv_url>http://XX</flv_url> <h265_url>http://XX</h265_url> <hls_url>http://XX</hls_url> <name>高清</name> </live_url_do> </live_url_list> <location>火星</location> <native_feed_detail_url>跳转</native_feed_detail_url> <praise_count>点赞数</praise_count> <replay_url>http://XX</replay_url> <room_status>1</room_status> <simple_broad_caster> <account_id>11</account_id> <account_name>薇娅</account_name> <fans_num>233</fans_num> <head_img>http://XX</head_img> <tb_nick>薇娅</tb_nick> <level>0</level> </simple_broad_caster> <start_time>3333</start_time> <status>100</status> <stream_status>1</stream_status> <tidbits_url>http://XX</tidbits_url> <title>直播</title> <topic>tttt</topic> <total_view_count>1111</total_view_count> <user_nick>333</user_nick> <view_count>1111</view_count> <room_type></room_type> <address_detail></address_detail> <longitude></longitude> <latitude></latitude> <country_code></country_code> <district_code></district_code> <province_code></province_code> <city_code></city_code> <new_room_type></new_room_type> <show_lbs>false</show_lbs> </live_video_do> </live_list> <result_code> <error_code>22</error_code> <info>22</info> </result_code> <success>false</success> <total_count>120</total_count> </result> </live_batchlives_get_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|