• 淘宝获取收货地址列表的 API


     注册获取专属于你的key和secret

    一、参数

    公共参数

    请求地址: https://api-gw.onebound.cn/taobao/buyer_address_list

    名称类型必须描述
    keyString调用key(必须以GET方式拼接在URL中)
    secretString调用密钥
    api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
    cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
    result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
    langString[cn,en,ru]翻译语言,默认cn简体中文
    versionStringAPI版本

    响应参数

    Version: Date:

    名称类型必须示例值描述

    addressDetail

    String0人民路313号(秦皇食府对面)万邦科技有限公司详细地址

    area

    String0渝水区地区

    city

    String0新余市城市

    fullAddress

    String0江西省/新余市/渝水区/城南街道地址信息

    fullName

    String0张三收货人姓名

    mobile

    String013979008888手机号码

    phoneInternationalCode

    String086电话国际代码

    phone

    String00790-6666666电话号码全部

    phoneCode

    String06666666电话号码

    phoneSection

    String00790区号

    post

    String0338000邮编

    province

    String0江西省省份

    town

    String0城南街道镇/街道

    x

    String027.806949纬度

    y

    String0114.944236经度


    二、示例

    请求示例

    &secret=<您自己的apiSecret>&";
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
    curl_setopt($curl, CURLOPT_FAILONERROR, false);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_HEADER, true);
    curl_setopt($curl, CURLOPT_ENCODING, "gzip");
    var_dump(curl_exec($curl));
    ?>
    1. {
    2. "data": [
    3. {
    4. "active": false,
    5. "addressDetail": "人民路313号(秦皇食府对面)万邦科技有限公司",
    6. "area": "渝水区",
    7. "areaDivisionCode": 360502,
    8. "buidFromChindIframe": true,
    9. "chinaLand": true,
    10. "city": "新余市",
    11. "cityDivisionCode": 360500,
    12. "confidence": 93,
    13. "country": "",
    14. "countryDivisionCode": 1,
    15. "defaultAddress": true,
    16. "defaultCode": 1,
    17. "deliverId": 6845502554,
    18. "divisionCode": "360502",
    19. "fillPoiAddress": false,
    20. "forgin": false,
    21. "fullAddress": "江西省/新余市/渝水区/城南街道",
    22. "fullName": "张三",
    23. "gAT": false,
    24. "gmtCreate": 1480486142000,
    25. "gmtModified": 1495477303000,
    26. "guoguoAddress": false,
    27. "hKOrMacauOrTW": false,
    28. "helpBuyAddress": false,
    29. "illegalCunTaoAddress": false,
    30. "isPoiAddress": false,
    31. "kinshipDeliverAddress": false,
    32. "lastChoose": false,
    33. "locationEnable": false,
    34. "mobile": "13979008888",
    35. "mobileCode": "86",
    36. "needToUpgrade": false,
    37. "needUpgrade": false,
    38. "overSea": false,
    39. "phone": "0790-6666666",
    40. "phoneCode": "6666666",
    41. "phoneInternationalCode": "86",
    42. "phoneSection": "0790",
    43. "post": "338000",
    44. "provDivisionCode": 360000,
    45. "province": "江西省",
    46. "tAIWAN": false,
    47. "town": "城南街道",
    48. "townDivisionCode": 360502001,
    49. "userNumId": 2601011849,
    50. "x": "27.806949",
    51. "y": "114.944236"
    52. },
    53. {
    54. "active": false,
    55. "addressDetail": "康泰路62号 玫瑰小区6期",
    56. "area": "渝水区",
    57. "areaDivisionCode": 360502,
    58. "buidFromChindIframe": true,
    59. "chinaLand": true,
    60. "city": "新余市",
    61. "cityDivisionCode": 360500,
    62. "confidence": 98,
    63. "country": "",
    64. "countryDivisionCode": 1,
    65. "defaultAddress": false,
    66. "defaultCode": 0,
    67. "deliverId": 6375759746,
    68. "divisionCode": "360502",
    69. "fillPoiAddress": false,
    70. "forgin": false,
    71. "fullAddress": "江西省/新余市/渝水区/城南街道",
    72. "fullName": "李四",
    73. "gAT": false,
    74. "gmtCreate": 1465220621000,
    75. "gmtModified": 1495681978000,
    76. "guoguoAddress": false,
    77. "hKOrMacauOrTW": false,
    78. "helpBuyAddress": false,
    79. "illegalCunTaoAddress": false,
    80. "isPoiAddress": false,
    81. "kinshipDeliverAddress": false,
    82. "lastChoose": false,
    83. "locationEnable": false,
    84. "mobile": "13979008888",
    85. "mobileCode": "86",
    86. "needToUpgrade": false,
    87. "needUpgrade": false,
    88. "overSea": false,
    89. "post": "338000",
    90. "provDivisionCode": 360000,
    91. "province": "江西省",
    92. "tAIWAN": false,
    93. "town": "城南街道",
    94. "townDivisionCode": 360502001,
    95. "userNumId": 2601011849,
    96. "x": "27.79764",
    97. "y": "114.950212"
    98. }
    99. ],
    100. "from": "taobao",
    101. "error": "",
    102. "reason": "",
    103. "error_code": "0000",
    104. "cache": 0,
    105. "api_info": "today:7 max:10000",
    106. "execution_time": 0.704,
    107. "server_time": "Beijing/2021-03-16 10:47:24",
    108. "client_ip": "127.0.0.1",
    109. "call_args": [],
    110. "api_type": "taobao",
    111. "translate_language": "zh-CN",
    112. "translate_engine": "google_cn",
    113. "server_memory": "5.5MB",
    114. "request_id": "0.60501c3b778b7"
    115. }


     

  • 相关阅读:
    python Django的个人博客
    MySQL-如何合理正确使用索引
    LeetCode(cai鸟之路)139. 单词拆分
    ElasticSearch讲解(开源的、高拓展的分布式全文检索引擎)
    北大肖臻老师《区块链技术与应用》系列课程学习笔记[1]
    vim 窗口管理
    第三十章 管理许可(三)
    python+vue+elementui花卉种植技术网站
    开发Vue的时候,我们可以做到那些力所能及的优化?
    typescript
  • 原文地址:https://blog.csdn.net/Noah_ZX/article/details/126100792