설치:
1. 원하는 위치에이 클래스 다운로드
2. 라인에서이 클래스에서 Trackingmore Api 키 입력 "$apiKey 보호 = 'API 키를 ';"
3. 프로젝트에서이 클래스를 필요로 합니다. 그냥 같은:
require('/path/trackingmore/class.php');
urlStr = ""
requestData = ""
result = tracker.trackingmore(requestData, urlStr, "carriers")
urlStr = ""
requestData = "{\"tracking_number\":\"EA152563251CN\"}"
result = tracker.trackingmore(requestData, urlStr, "carriers/detect")
urlStr = ''
requestData ="{\"tracking_number\": \"BYS006086075\",\"carrier_code\":\"yanwen\"}"
result = tracker.trackingmore(requestData, urlStr, "post")
urlStr = "/yanwen/BYS006086089"
requestData =''
result = tracker.trackingmore(requestData, urlStr, "codeNumberGet")
urlStr =''
requestData ="{\"tracking_number\": \"LW505109082CN\",\"carrier_code\":\"china-ems\",\"destination_code\":\"United States\",\"tracking_ship_date\": \"deutsch-post\",\"tracking_postal_code\":\"postnl-3s\",\"specialNumberDestination\":\"postnl-3s\",\"order\":\"#123123\"}"
result = tracker.trackingmore(requestData, urlStr, "realtime")
urlStr = ''
requestData ="[{\"tracking_number\": \"EA152565241CN\",\"carrier_code\":\"china-ems\",\"title\":\"chase chen\",\"customer_name\":\"chase\",\"customer_email\":\"[email protected]\",\"order_id\":\"#123444\",\"order_create_time\":\"2018-05-20 12:00\",\"destination_code\":\"IL\",\"tracking_ship_date\":\"1525314361\",\"tracking_postal_code\":\"13ES20\",\"lang\":\"en\",\"logistics_channel\":\"4PX page\"},{\"tracking_number\": \"EA152563242CN\",\"carrier_code\":\"china-ems\",\"title\":\"chase chen\",\"customer_name\":\"chase\",\"customer_email\":\"[email protected]\",\"order_id\":\"#123444\",\"order_create_time\":\"2018-05-20 12:00\",\"destination_code\":\"IL\",\"tracking_ship_date\":\"1521314361\",\"tracking_postal_code\":\"13ES20\",\"lang\":\"en\",\"logistics_channel\":\"4PX page1\"}]""
result = tracker.trackingmore(requestData, urlStr, "batch")
urlStr = "?page=1&limit=100&created_at_min=1521314361&created_at_max=1541314361&update_time_min=1521314361&update_time_max=1541314361&order_created_time_min=1521314361&order_created_time_max=1541314361&numbers=EA152563254CN,UG586285221CN&orders=#123&lang=en"
requestData =''
result = tracker.trackingmore(requestData, urlStr, "get")
urlStr = "/yanwen/BYS006086092"
requestData ="{\"title\": \"testtitle\",\"customer_name\":\"python test\",\"customer_email\":\"[email protected]\",\"order_id\":\"#1234567\",\"logistics_channel\":\"chase chen python\",\"customer_phone\":\"+86 13873399982\",\"destination_code\":\"US\",\"status\":\"7\"}"
result = tracker.trackingmore(requestData, urlStr, "codeNumberPut")
urlStr = "/wishpost/82196271478"
requestData =''
result = tracker.trackingmore(requestData, urlStr, "codeNumberDelete")
urlStr = ""
requestData = "[{\"tracking_number\":\"EA152563242CN\",\"carrier_code\":\"china-ems\"},{\"tracking_number\":\"EA152563254CN\",\"carrier_code\":\"china-ems\"}]"
result = tracker.trackingmore(requestData, urlStr, "delete")
urlStr = ""
requestData = "{\"tracking_number\": \"EA152563242CN\",\"carrier_code\":\"dhl\",\"update_carrier_code\":\"china-ems\"}"
result = tracker.trackingmore(requestData, urlStr, "update")
urlStr = ""
requestData = ""
result = tracker.trackingmore(requestData, urlStr, "getuserinfo")
urlStr = ""
requestData = ""
result = tracker.trackingmore(requestData, urlStr, "getstatusnumber")
urlStr = ""
requestData = "[{\"tracking_number\":\"LK032051658CN\",\"carrier_code\":\"china-ems\"},{\"tracking_number\":\"EA166023092CN\",\"carrier_code\":\"china-ems\"}]"
result = tracker.trackingmore(requestData, urlStr, "notupdate")
urlStr = ""
requestData = "[{\"country\":\"CN\",\"postcode\":\"400422\"},{\"country\":\"CN\",\"postcode\":\"412000\"}]"
result = tracker.trackingmore(requestData, urlStr, "remote")
urlStr = ""
requestData = "[{\"carrier_code\":\"dhl\",\"destination\":\"US\",\"original\":\"CN\"},{\"carrier_code\":\"dhl\",\"destination\":\"RU\",\"original\":\"CN\"}]"
result = tracker.trackingmore(requestData, urlStr, "costtime")
urlStr = ""
requestData = "[{\"tracking_number\":\"RM131516216CN\",\"carrier_code\":\"china-post\",\"title\": \"testtitle\",\"customer_name\":\"python test\",\"customer_email\":\"[email protected]\",\"order_id\":\"#123\",\"logistics_channel\":\"chase chen\",\"destination_code\":\"US\",\"status\":\"7\"},{\"tracking_number\":\"RM111516216CN\",\"carrier_code\":\"china-post\",\"title\": \"testtitle\",\"customer_name\":\"python test\",\"customer_email\":\"[email protected]\",\"order_id\":\"#123\",\"logistics_channel\":\"chase chen\",\"destination_code\":\"US\",\"status\":\"7\"}]"
result = tracker.trackingmore(requestData, urlStr, "updatemore")
배송 업데이트를 자동화하거나 배송 효율성을 개선하고 싶으신가요? TrackingMore의 강력한 API를 사용하면 고객의 구매 후 여정을 혁신할 수 있는 모든 도구를 손쉽게 사용할 수 있습니다.