Unoffical Starbucks API.
Project description
Unofficial Starbucks API.
This API is written in Python.
Only supports for Starbucks Korea.
Installation
You can install Starbucks with pip
$ pip install starbucks
Features
1. Login
You can login to Starbucks like:
from starbucks import Starbucks starbucks = Starbucks() starbucks.login('username', 'password')
2. Get My Cards
You can get your cards like:
cards = starbucks.get_cards()
3. Get My Card Information
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}
4. Get My Stars Count
You can get your stars count like:
starbucks.get_stars_count()
or using CLI:
$ starbucks-star --id {username} --password {password}
6. Get My Coupons
You can get the list of your coupons like:
starbucks.get_coupons()
7. Logout
If you want to logout, just:
starbucks.logout()
Known Issues
Should I have to check if I logged in successfully like this?
To Do
Card usage histories
More error checks
and so on.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Starbucks-0.5.0.tar.gz
(3.8 kB
view details)
File details
Details for the file Starbucks-0.5.0.tar.gz
.
File metadata
- Download URL: Starbucks-0.5.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abb73a9e1e3f478d5f016e4238ac1f7b11db71ce029db10664975441b56db884 |
|
MD5 | d0b8eaca7cb644880c67e038fb088849 |
|
BLAKE2b-256 | 5965e93609a4ca0621bbacae29186701c22707f390989e6272923ab62d899821 |