aliexpress.social.locale.get (Locale获取接口)

新增Locale获取接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result ItemPickPagingResult 包类型
  • results
  • LocaleDto []
  • 结果封装
  • └ code
  • String
  • English
  • Locale编码
  • └ name
  • String
  • en_US
  • Locale名称
  • └ page_no
  • Number
  • 1
  • 页码
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ page_size
  • Number
  • 10
  • 每页数据条数
  • └ error_code
  • String
  • 错误码
  • └ total_count
  • Number
  • 100
  • 总记录条数
  • └ error_msg
  • String
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressSocialLocaleGetRequest req = new AliexpressSocialLocaleGetRequest();
AliexpressSocialLocaleGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_social_locale_get_response>
    <result>
        <results>
            <locale_dto>
                <code>English</code>
                <name>en_US</name>
            </locale_dto>
        </results>
        <page_no>1</page_no>
        <success>true</success>
        <page_size>10</page_size>
        <error_code></error_code>
        <total_count>100</total_count>
        <error_msg></error_msg>
    </result>
</aliexpress_social_locale_get_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

返回
顶部