aliexpress.social.country.get (获取国家列表)

获取目前AE支持的国家列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
language String 可选 en 语言

响应参数

名称 类型 示例值 描述
result ItemPickPagingResult ItemPickPagingResult
  • results
  • CountryDto []
  • 返回数据集合
  • └ id
  • String
  • 100001
  • 国家ID
  • └ name
  • String
  • Afghanistan
  • 国家名称
  • └ code
  • String
  • AF
  • 国家CODE
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • 错误码
  • └ error_msg
  • String
  • 错误信息

请求示例

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

响应示例

  • XML示例
  • JSON示例
<aliexpress_social_country_get_response>
    <result>
        <results>
            <country_dto>
                <id>100001</id>
                <name>Afghanistan</name>
                <code>AF</code>
            </country_dto>
        </results>
        <success>true</success>
        <error_code></error_code>
        <error_msg></error_msg>
    </result>
</aliexpress_social_country_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

返回
顶部