Skip to content

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

License

Notifications You must be signed in to change notification settings

ThanatosDi/ibonPrinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ibonPrinter

Python-Version Require

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

使用

e.g.

from ibonPrinter import IBON

printer = IBON()
# 不想收到 ibon 將取件編號及取件QRcode寄至信箱
printer.upload('file.jpg')
# 要收到 ibon 將取件編號及取件QRcode寄至信箱
printer.upload('file.jpg', user='陳大寶', email='[email protected]')

結果

{
  "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

Packages

No packages published

Languages