From 71c499a3f02d4cb3a54e326ee2424d488b72d9ec Mon Sep 17 00:00:00 2001 From: Pichu Chen Date: Thu, 13 Aug 2020 23:44:14 +0800 Subject: [PATCH] update post office --- README.md | 6 +++++- example/query.go | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7981cde..7baf86a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ -# chunghwa-post-query +# 中華郵政郵件查詢 Query ChungHwa post office + +查詢中華郵政掛號使用 + +請先和中華郵政申請API使用 diff --git a/example/query.go b/example/query.go index 51353e9..8916d5a 100644 --- a/example/query.go +++ b/example/query.go @@ -19,10 +19,10 @@ func main() { if host != "" { c.ConnectionHost = host } - banUnitTpStatus, err := c.QueryMailDetail("44261122507318") + result, err := c.QueryMailDetail("44261122507318") if err != nil { fmt.Println(err) return } - fmt.Println("status:", banUnitTpStatus) + fmt.Println("status:", result) }