kamontat / thaipost

DEPRECATED: Thailand Post Tracking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thaipost (DEPRECATED)

DEPRECATED: Unoffical Node REST APIs for Thailand Post

TOC

  1. APIs
  2. Server
  3. CLI

APIs

I create the api code for fetch and generate the json result from html using headless chrome. It might take time more than usually

The APIs are under the lib folder. that is a async method.

Server

Express + APIs = the RESTAPI server for developer who want to create awesome project about the redesign Thailand Post.

The Server are under the server folder

Usage

The server will run on port 8080 at path <url>:8080/tracking/<id>. Available parameters

Parameter Description
format=true add indent to json object

CLI

In order to run CLI, node 8^ is required

For CLI, I use ocif and APIs to create cli for thaipost.

Usage

$ thaiport [TRACKID]
$ thaiport [TRACKID] --json|-J # for output as json

$ thaiport --version|--help # for helper

About

DEPRECATED: Thailand Post Tracking

License:Apache License 2.0


Languages

Language:TypeScript 97.0%Language:JavaScript 2.8%Language:Batchfile 0.3%