afzafri/gd-express-tracking-api

此包最新版本(dev-master)无可用许可证信息。

返回GDEX跟踪详情的JSON格式字符串

dev-master 2021-01-08 14:49 UTC

This package is auto-updated.

Last update: 2024-09-08 23:17:54 UTC


README

  • 返回GDEX跟踪详情的JSON格式字符串
  • 可用于在您的项目/系统中跟踪GDEX包裹
  • 注意
    • 这并非官方API,实际上它只是一个“黑客”程序,或者说是获取跟踪数据的解决方案。
    • 此API将直接从GDEX跟踪网站获取数据,因此如果网站有任何问题,此API也会受到影响。

创建者

  • Afif Zafri
  • 日期:2017年2月22日
  • 更新时间:2020年1月16日
  • 联系方式:http://fb.me/afzafri

安装

composer require afzafri/gd-express-tracking-api:dev-master

用法

  • http://site.com/api.php?trackingNo=CODE
  • 其中 CODE 是您的包裹跟踪号码
  • 它将返回一个JSON格式的字符串,您可以解析该字符串并对其进行操作。

示例响应

{
  "http_code": 200,
  "error_msg": "No error",
  "message": "Record Found",
  "data": [
    {
      "date_time": "2020-09-21 17:15:47",
      "status": "Delivered",
      "location": "Kuching"
    },
    {
      "date_time": "2020-09-21 10:16:54",
      "status": "Out for delivery",
      "location": "Kuching"
    },
    {
      "date_time": "2020-09-12 10:08:34",
      "status": "Inbound to KCH station",
      "location": "Kuching"
    },
    {
      "date_time": "2020-09-09 03:07:08",
      "status": "In transit",
      "location": "Petaling Jaya"
    },
    {
      "date_time": "2020-09-09 02:55:00",
      "status": "In transit",
      "location": "Petaling Jaya"
    },
    {
      "date_time": "2020-09-08 19:03:50",
      "status": "Outbound from JHB station",
      "location": "Johor Bharu"
    },
    {
      "date_time": "2020-09-08 16:23:41",
      "status": "Picked up by courier",
      "location": "Johor Bharu"
    }
  ],
  "info": {
    "creator": "Afif Zafri (afzafri)",
    "project_page": "https://github.com/afzafri/GD-Express-Tracking-API",
    "date_updated": "16/01/2020"
  }
}

许可证

此库在 MIT许可证 下,请参阅LICENSE文件