Skip to content

Commit

Permalink
update post office
Browse files Browse the repository at this point in the history
  • Loading branch information
PichuChen committed Aug 13, 2020
1 parent 49a88a9 commit 71c499a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# chunghwa-post-query
# 中華郵政郵件查詢
Query ChungHwa post office

查詢中華郵政掛號使用

請先和中華郵政申請API使用
4 changes: 2 additions & 2 deletions example/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 71c499a

Please sign in to comment.