文档中心 > API类目 > 电影票API

taobao.film.show.name.search (根据影片名称搜索)

微博后台根据影片名称检索淘票票影片,做匹配

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
platform Number 必须 2 平台
keyword String 必须 变形金刚 影片名或关键字
city_code Number 必须 310100 城市码
current_page Number 必须 1 当前页
page_size Number 必须 10 页数

响应参数

名称 类型 示例值 描述
result ResultGeneralModel result
  • └ return_code
  • String
  • 0
  • returnCode
  • └ return_message
  • String
  • success
  • returnMessage
  • return_value
  • ShowSearchResult
  • returnValue
  • shows
  • Show []
  • shows
  • └ id
  • Number
  • 123
  • 主键
  • └ show_name
  • String
  • 变形金刚
  • 影片名称
  • └ director
  • String
  • 刘青云
  • 导演
  • └ leading_role
  • String
  • 刘德华
  • 主演
  • └ country
  • String
  • 中国
  • 国家
  • └ language
  • String
  • 英语
  • 语言
  • └ open_day
  • String
  • 2017-04-12
  • 上映日期
  • └ open_country
  • String
  • 中国
  • 上映国家
  • └ show_name_en
  • String
  • BigMonkey
  • 英文名
  • └ open_time
  • String
  • 2017-04-12
  • 上映时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FilmShowNameSearchRequest req = new FilmShowNameSearchRequest();
req.setPlatform(2L);
req.setKeyword("变形金刚");
req.setCityCode(310100L);
req.setCurrentPage(1L);
req.setPageSize(10L);
FilmShowNameSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<film_show_name_search_response>
    <result>
        <return_code>0</return_code>
        <return_message>success</return_message>
        <return_value>
            <shows>
                <show>
                    <id>123</id>
                    <show_name>变形金刚</show_name>
                    <director>刘青云</director>
                    <leading_role>刘德华</leading_role>
                    <country>中国</country>
                    <language>英语</language>
                    <open_day>2017-04-12</open_day>
                    <open_country>中国</open_country>
                    <show_name_en>BigMonkey</show_name_en>
                    <open_time>2017-04-12</open_time>
                </show>
            </shows>
        </return_value>
    </result>
</film_show_name_search_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部