API: www.1tracking.net

11/28/2018 16:58 Gamer Dragon#1
Hey,

für ein Projekt an dem ich im Moment arbeite brauche ich die API von [Only registered and activated users can see links. Click Here To Register...]. Mit dieser API ist es mir erlaubt Pakete zu verfolgen. Ich konnte bisher noch keine erfolgreiche Abfrage machen. Funktioniert bei euch die API? Mach ich dann etwas falsch?
Hier die API-Docs: [Only registered and activated users can see links. Click Here To Register...]
Hier eine Sendungsnummer die ihr zum Testen nutzen könnt: 35244172210188

MfG
Gamer Dragon
11/28/2018 17:42 False#2
Quote:
Originally Posted by Gamer Dragon View Post
Hey,

für ein Projekt an dem ich im Moment arbeite brauche ich die API von [Only registered and activated users can see links. Click Here To Register...]. Mit dieser API ist es mir erlaubt Pakete zu verfolgen. Ich konnte bisher noch keine erfolgreiche Abfrage machen. Funktioniert bei euch die API? Mach ich dann etwas falsch?
Hier die API-Docs: [Only registered and activated users can see links. Click Here To Register...]
Hier eine Sendungsnummer die ihr zum Testen nutzen könnt: 35244172210188

MfG
Gamer Dragon
Deren Api Dokumentation ist ein witz...
Mit der Dokumentation habe ich es auch nicht zum laufen bekommen, da man auf der Startseite aber auch ein Paket abfragen kann habe ich einfach mal geschaut was dort gemacht wird und das kurz nachgebaut.

[Only registered and activated users can see links. Click Here To Register...]

Response vom API-Call sieht wie folgt aus :

Code:
{
   "data":[
      {
         "result":40,
         "track":"35244172210188",
         "code":"DEEXPHEU",
         "fromKey":"www.myhermes.de",
         "toKey":"",
         "fromCode":"Germany",
         "toCode":"DE",
         "wms":[
            {
               "ondate":"2018-09-02 00:40:04",
               "status":"Order Created.",
               "address":"ShenZhen"
            },
            {
               "ondate":"2018-09-02 02:06:12",
               "status":"Confirmed & Prepared For Packing.",
               "address":"ShenZhen"
            },
            {
               "ondate":"2018-09-02 02:06:14",
               "status":"Shipping Label Printed.",
               "address":"ShenZhen"
            },
            {
               "ondate":"2018-09-02 04:04:55",
               "status":"Departure in Location Warehouse Sorting Centre.",
               "address":"ShenZhen"
            }
         ],
         "frist":[
            {
               "ondate":"2018-09-03 18:00:33",
               "status":"Sent to HongKong Sorting Centre.",
               "address":"ShenZhen"
            },
            {
               "ondate":"2018-09-04 06:00:25",
               "status":"Arrived at Hongkong Sorting Centre.",
               "address":"Hongkong"
            },
            {
               "ondate":"2018-09-05 02:00:23",
               "status":"Departed Hongkong Sorting Centre.",
               "address":"Hongkong"
            },
            {
               "ondate":"2018-09-06 03:00:27",
               "status":"Parcel arrived at the airport.",
               "address":""
            },
            {
               "ondate":"2018-09-06 09:00:00",
               "status":"Parcel is in clearance.",
               "address":""
            },
            {
               "ondate":"2018-09-06 15:00:00",
               "status":"Customs clearance processing complete.",
               "address":""
            },
            {
               "ondate":"2018-09-06 16:00:00",
               "status":"Shipment in transit-delivered to destination country.",
               "address":""
            }
         ],
         "from":[
            {
               "ondate":"2018-09-01 18:49:31",
               "status":"The parcel has been announced electronically to Hermes.  ",
               "address":""
            },
            {
               "ondate":"2018-09-07 20:51:54",
               "status":"The parcel has been sorted at a Hermes Logistic Hub.  ",
               "address":""
            },
            {
               "ondate":"2018-09-10 04:17:42",
               "status":"The parcel has been sorted at a Hermes Logistic Hub.  ",
               "address":""
            },
            {
               "ondate":"2018-09-10 04:17:42",
               "status":"The parcel has been received at the Hermes depot LC Berlin.",
               "address":""
            },
            {
               "ondate":"2018-09-10 09:55:16",
               "status":"The Parcel is out for delivery today  ",
               "address":""
            },
            {
               "ondate":"2018-09-10 12:05:41",
               "status":"The parcel has been delivered.   ",
               "address":""
            }
         ],
         "to":[

         ],
         "latest":{
            "ondate":"2018-09-10 12:05:41",
            "status":"The parcel has been delivered.   "
         },
         "expect":{
            "ondate":"2018-09-02 04:04:55",
            "expectDate":"",
            "expectDays":0
         },
         "origin":"02",
         "uuid":"0.1288423471849872-1543422605000"
      }
   ],
   "packTracks":[

   ],
   "errKey":[

   ],
   "errTracks":[

   ],
   "isAd":true,
   "status":{
      "code":0,
      "msg":"Success!"
   }
}
11/28/2018 18:02 Gamer Dragon#3
Quote:
Originally Posted by .ƒaℓsє. View Post
Deren Api Dokumentation ist ein witz...
Mit der Dokumentation habe ich es auch nicht zum laufen bekommen, da man auf der Startseite aber auch ein Paket abfragen kann habe ich einfach mal geschaut was dort gemacht wird und das kurz nachgebaut.

[Only registered and activated users can see links. Click Here To Register...]

Response vom API-Call sieht wie folgt aus :

Code:
{
   "data":[
      {
         "result":40,
         "track":"35244172210188",
         "code":"DEEXPHEU",
         "fromKey":"www.myhermes.de",
         "toKey":"",
         "fromCode":"Germany",
         "toCode":"DE",
         "wms":[
            {
               "ondate":"2018-09-02 00:40:04",
               "status":"Order Created.",
               "address":"ShenZhen"
            },
            {
               "ondate":"2018-09-02 02:06:12",
               "status":"Confirmed & Prepared For Packing.",
               "address":"ShenZhen"
            },
            {
               "ondate":"2018-09-02 02:06:14",
               "status":"Shipping Label Printed.",
               "address":"ShenZhen"
            },
            {
               "ondate":"2018-09-02 04:04:55",
               "status":"Departure in Location Warehouse Sorting Centre.",
               "address":"ShenZhen"
            }
         ],
         "frist":[
            {
               "ondate":"2018-09-03 18:00:33",
               "status":"Sent to HongKong Sorting Centre.",
               "address":"ShenZhen"
            },
            {
               "ondate":"2018-09-04 06:00:25",
               "status":"Arrived at Hongkong Sorting Centre.",
               "address":"Hongkong"
            },
            {
               "ondate":"2018-09-05 02:00:23",
               "status":"Departed Hongkong Sorting Centre.",
               "address":"Hongkong"
            },
            {
               "ondate":"2018-09-06 03:00:27",
               "status":"Parcel arrived at the airport.",
               "address":""
            },
            {
               "ondate":"2018-09-06 09:00:00",
               "status":"Parcel is in clearance.",
               "address":""
            },
            {
               "ondate":"2018-09-06 15:00:00",
               "status":"Customs clearance processing complete.",
               "address":""
            },
            {
               "ondate":"2018-09-06 16:00:00",
               "status":"Shipment in transit-delivered to destination country.",
               "address":""
            }
         ],
         "from":[
            {
               "ondate":"2018-09-01 18:49:31",
               "status":"The parcel has been announced electronically to Hermes.  ",
               "address":""
            },
            {
               "ondate":"2018-09-07 20:51:54",
               "status":"The parcel has been sorted at a Hermes Logistic Hub.  ",
               "address":""
            },
            {
               "ondate":"2018-09-10 04:17:42",
               "status":"The parcel has been sorted at a Hermes Logistic Hub.  ",
               "address":""
            },
            {
               "ondate":"2018-09-10 04:17:42",
               "status":"The parcel has been received at the Hermes depot LC Berlin.",
               "address":""
            },
            {
               "ondate":"2018-09-10 09:55:16",
               "status":"The Parcel is out for delivery today  ",
               "address":""
            },
            {
               "ondate":"2018-09-10 12:05:41",
               "status":"The parcel has been delivered.   ",
               "address":""
            }
         ],
         "to":[

         ],
         "latest":{
            "ondate":"2018-09-10 12:05:41",
            "status":"The parcel has been delivered.   "
         },
         "expect":{
            "ondate":"2018-09-02 04:04:55",
            "expectDate":"",
            "expectDays":0
         },
         "origin":"02",
         "uuid":"0.1288423471849872-1543422605000"
      }
   ],
   "packTracks":[

   ],
   "errKey":[

   ],
   "errTracks":[

   ],
   "isAd":true,
   "status":{
      "code":0,
      "msg":"Success!"
   }
}
Vielen Dank! Du hast mir sehr geholfen!