TrackingMore API

Golang Example 

  • Der api-Klasse
    //www.trackingmore.com/api-class_golang.html

    Installation:
    1. Laden Sie diese Klasse auf gewünschte Position
    2. Füllen Sie im Trackingmore-Api-Key in dieser Klasse in Zeile "geschützt $apiKey ="IHRE API-SCHLÜSSEL";"
    (3) benötigen Sie dieser Klasse in Ihrem Projekt. Genau wie:
    require('/Path/trackingmore/Class.php');


    Liste aller Fluggesellschaften
    var url string = "http://api.trackingmore.com/v2/carriers/"
    var postData string = ""
    httpDo(url,postData,"GET")
    
    Detect a carrier by tracking code
    var url string = "http://api.trackingmore.com/v2/carriers/detect"
    var postData string = "{\"tracking_number\":\"EA152563251CN\"}"
    httpDo(url,postData,"POST")
    
    Listen Sie alle trackings
    var url string = "http://api.trackingmore.com/v2/trackings/get?page=1&limit=100&created_at_min=1521314361&created_at_max=1541314361&update_time_min=1521314361&update_time_max=1541314361&order_created_time_min=&order_created_time_max=&numbers=&orders=&lang=en"
    httpDo(url,"","GET")
    
    Erstellen Sie ein Tracking-Element
    var url string = "http://api.trackingmore.com/v2/trackings/post"
    var postData string = "{\"tracking_number\": \"BYS006086078\",\"carrier_code\":\"yanwen\",\"title\":\"chase chen\",\"customer_name\":\"chase\",\"customer_email\":\"[email protected]\",\"order_id\":\"#123\",\"order_create_time\":\"2018-05-20 12:00\",\"destination_code\":\"IL\",\"tracking_ship_date\":\"1521314361\",\"tracking_postal_code\":\"13ES20\",\"lang\":\"en\",\"logistics_channel\":\"4PX page\"}"
    httpDo(url,postData,"POST")
    
    Erstellen Sie mehrere Trackings.
    var url string = "http://api.trackingmore.com/v2/trackings/batch"
    var postData string = "[{\"tracking_number\": \"EA152565249CN\",\"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\": \"EA152563246CN\",\"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\"}]"
    httpDo(url,postData,"POST")
    
    Erhalten Sie Ergebnisse von einem einzigen Tracking verfolgen.
    var url string ="http://api.trackingmore.com/v2/trackings/4px/S000002431442"
    httpDo(url,"","GET")
    
    Tracking-Element aktualisieren
    var url string = "{\"title\": \"testtitle\",\"customer_name\":\"go test\",\"customer_email\":\"[email protected]\",\"order_id\":\"#1234567\",\"logistics_channel\":\"chase chen go\",\"customer_phone\":\"+86 13873399982\",\"destination_code\":\"US\",\"status\":\"7\"}"
    httpDo(url,postData,"PUT")
    
    Ein Tracking-Element löschen
    var url string ="http://api.trackingmore.com/v2/trackings/4px/S000002431442"
    httpDo(url,"","DELETE")
    
    Erhalten Sie Realtime Tracking-Ergebnisse von einer einzigen tracking
    var url string ="http://api.trackingmore.com/v2/trackings/realtime"
    var postData string ="{\"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\"}"
    httpDo(url,postData,"POST")
    
    Löschen Sie mehrere Tracking-Element
    var url string = "http://api.trackingmore.com/v2/trackings/delete"
    var postData string = "[{\"tracking_number\":\"EA152563242CN\",\"carrier_code\":\"china-ems\"},{\"tracking_number\":\"EA152563254CN\",\"carrier_code\":\"china-ems\"}]"
    httpDo(url,postData,"POST")
    
    Kurier-Code ändern
    var url string ="http://api.trackingmore.com/v2/trackings/update"
    var postData string = "{\"tracking_number\": \"EA152563242CN\",\"carrier_code\":\"china-ems\",\"update_carrier_code\":\"china-post\"}"
    httpDo(url,postData,"POST")
    
    Benutzer-Info erhalten
    var url string ="http://api.trackingmore.com/v2/trackings/getuserinfo"
    var postData string = ""
    httpDo(url,postData,"GET")
    
    Ordnungsnummer erhalten
    var url string ="http://api.trackingmore.com/v2/trackings/getstatusnumber"
    var postData string = ""
    httpDo(url,postData,"GET")
    
    Batch, nicht zu aktualisieren, tracking Artikel
    var url string ="http://api.trackingmore.com/v2/trackings/notupdate"
    var postData string = "[{\"tracking_number\":\"LK032051658CN\",\"carrier_code\":\"china-ems\"},{\"tracking_number\":\"EA152565249CN\",\"carrier_code\":\"china-ems\"}]"
    httpDo(url,postData,"POST")
    
    Überprüfen Sie, ob eine Sendung an abgelegenen Gegend gesendet wird.
    var url string = "http://api.trackingmore.com/v2/trackings/remote"
    var postData string = "[{\"country\":\"CN\",\"postcode\":\"400422\"},{\"country\":\"CN\",\"postcode\":\"412000\"}]"
    httpDo(url,postData,"POST")
    
    Kurier Altern Ergebnisse erhalten
    var url string = "http://api.trackingmore.com/v2/trackings/costtime"
    var postData string = "[{\"carrier_code\":\"dhl\",\"destination\":\"US\",\"original\":\"CN\"},{\"carrier_code\":\"dhl\",\"destination\":\"RU\",\"original\":\"CN\"}]"
    httpDo(url,postData,"POST")
    
    Weitere Tracking-Element aktualisieren
    var url string = "http://api.trackingmore.com/v2/trackings/updatemore"
    var postData string = "[{\"tracking_number\":\"EA152563242CN\",\"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\":\"EA152563246CN\",\"carrier_code\":\"china-ems\",\"title\": \"testtitle\",\"customer_name\":\"python test\",\"customer_email\":\"[email protected]\",\"order_id\":\"#123\",\"logistics_channel\":\"chase chen\",\"destination_code\":\"US\",\"status\":\"7\"}]"
    httpDo(url,postData,"POST")
    

Transformieren Sie Ihre
Sendungsverfolgung heute

Möchten Sie Sendungsaktualisierungen automatisieren oder Ihre Liefereffizienz verbessern? Mit der leistungsstarken API von TrackingMore haben Sie alle Tools zur Hand, um die Reise Ihrer Kunden nach dem Kauf zu verändern.