Unofficial Starbucks API.
This API is written in Python.
Only supports for Starbucks Korea.
You can install Starbucks with pip
$ pip install starbucks
You can login to Starbucks like:
from starbucks import Starbucks starbucks = Starbucks() starbucks.login('username', 'password')
You can get your cards like:
cards = starbucks.get_cards()
You can get your card information like:
# You should know the registration number of your card. # It is in the source code of Starbucks web page. card = starbucks.get_card_info('0000000')
or using CLI:
$ starbucks-card --id {username} --password {password} --reg-number {card reg number}
You can get your stars count like:
starbucks.get_stars_count()
or using CLI:
$ starbucks-star --id {username} --password {password}
You can get the list of beverage menus like:
starbucks.get_beverages()
You can get the list of your coupons like:
starbucks.get_coupons()
If you want to logout, just:
starbucks.logout()
- Should I have to check if I logged in successfully like this?
- Card usage histories
- More error checks
- and so on.