Skip to content

利用 python 上傳檔案至 ibon 雲端,即可至全台灣 7-11 門市列印檔案

License

Notifications You must be signed in to change notification settings

Superbil/ibonPrinter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ibonPrinter

Python-Version Require

目前僅在 Python 3.x 環境通過測試,Python 2.x 不保證運作正常 必要套件: requests

Help

ibonprinter -h
usage: ibonprinter [-h] [--name NAME] [--email EMAIL] file

7-11 iBon printer uploader.

positional arguments:
  file           Upload file

optional arguments:
  -h, --help     show this help message and exit
  --name NAME    User name
  --email EMAIL  User email

使用範例

不想收到 ibon 將取件編號及取件QRcode寄至信箱

ibonprinter file.jpg

要收到 ibon 將取件編號及取件QRcode寄至信箱

ibonprinter --name '陳大寶' --email 'example@example.com' file.jpg

結果

{
  "Pincode": "2901203801",
  "DeadLine": "2019/10/06 00:12:03",
  "FileQrcode": "iVBORw0KGgoAAAANSUhE........==",
  "FileDate": "2019/10/03 00:12:03",
  "ResultCode": "00",
  "Message": "成功"
}

例外錯誤:

RequestError: 對伺服器進行請求時發生錯誤

LICENSE:

MIT License

✔Commercial use ✔Modification ✔Distribution ✔Private use

About

利用 python 上傳檔案至 ibon 雲端,即可至全台灣 7-11 門市列印檔案

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%