淘寶買家授權API系列:收貨地址列表,清除、刪除、修改、新增收貨地址

JenniferAB發表於2023-03-13

buyer_address_list 收貨地址列表

buyer_address_clear 清除收貨地址

buyer_address_remove 刪除收貨地址

buyer_address_modify 修改收貨地址

buyer_address_add 新增收貨地址

呼叫示例

<?php
// 請求示例 url 預設請求引數已經URL編碼處理
// 本示例程式碼未加密secret引數明文傳輸,若要加密請參考:
$method = "GET";
$url = "https://伺服器地址/taobao/buyer_address_list/?key=<您自己的apiKey>&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));
?>

返回資料示例

 "data": [
          {
              "active": false,
              "addressDetail": "人民路313號(秦皇食府對面)萬邦科技有限公司",
              "area": "渝水區",
              "areaDivisionCode": 360502,
              "buidFromChindIframe": true,
              "chinaLand": true,
              "city": "新餘市",
              "cityDivisionCode": 360500,
              "confidence": 93,
              "country": "",
              "countryDivisionCode": 1,
              "defaultAddress": true,
              "defaultCode": 1,
              "deliverId": 6845502554,
              "divisionCode": "360502",
              "fillPoiAddress": false,
              "forgin": false,
              "fullAddress": "江西省/新餘市/渝水區/城南街道",
              "fullName": "張三",
              "gAT": false,
              "gmtCreate": 1480486142000,
              "gmtModified": 1495477303000,
              "guoguoAddress": false,
              "hKOrMacauOrTW": false,
              "helpBuyAddress": false,
              "illegalCunTaoAddress": false,
              "isPoiAddress": false,
              "kinshipDeliverAddress": false,
              "lastChoose": false,
              "locationEnable": false,
              "mobile": "13979008888",
              "mobileCode": "86",
              "needToUpgrade": false,
              "needUpgrade": false,
              "overSea": false,
              "phone": "0790-6666666",
              "phoneCode": "6666666",
              "phoneInternationalCode": "86",
              "phoneSection": "0790",
              "post": "338000",
              "provDivisionCode": 360000,
              "province": "江西省",
              "tAIWAN": false,
              "town": "城南街道",
              "townDivisionCode": 360502001,
              "userNumId": 2601011849,
              "x": "27.806949",
              "y": "114.944236"
          },
          {
              "active": false,
              "addressDetail": "康泰路62號 玫瑰小區6期",
              "area": "渝水區",
              "areaDivisionCode": 360502,
              "buidFromChindIframe": true,
              "chinaLand": true,
              "city": "新餘市",
              "cityDivisionCode": 360500,
              "confidence": 98,
              "country": "",
              "countryDivisionCode": 1,
              "defaultAddress": false,
              "defaultCode": 0,
              "deliverId": 6375759746,
              "divisionCode": "360502",
              "fillPoiAddress": false,
              "forgin": false,
              "fullAddress": "江西省/新餘市/渝水區/城南街道",
              "fullName": "李四",
              "gAT": false,
              "gmtCreate": 1465220621000,
              "gmtModified": 1495681978000,
              "guoguoAddress": false,
              "hKOrMacauOrTW": false,
              "helpBuyAddress": false,
              "illegalCunTaoAddress": false,
              "isPoiAddress": false,
              "kinshipDeliverAddress": false,
              "lastChoose": false,
              "locationEnable": false,
              "mobile": "13979008888",
              "mobileCode": "86",
              "needToUpgrade": false,
              "needUpgrade": false,
              "overSea": false,
              "post": "338000",
              "provDivisionCode": 360000,
              "province": "江西省",
              "tAIWAN": false,
              "town": "城南街道",
              "townDivisionCode": 360502001,
              "userNumId": 2601011849,
              "x": "27.79764",
              "y": "114.950212"
          }

如需免費測試點這裡:,歡迎在評論區留言交流,或vx15870092527

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70026969/viewspace-2939256/,如需轉載,請註明出處,否則將追究法律責任。

相關文章