Skip to main content

Unoffical Starbucks API.

Project description

https://pypip.in/v/Starbucks/badge.svg

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 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}

3. Get My Stars Count

You can get your stars count like:

starbucks.get_stars_count()

or using CLI:

$ starbucks-star --id {username} --password {password}

4. Get Beverage Menus

You can get the list of beverage menus like:

starbucks.get_beverages()

5. 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

  • Cards list

  • Card usage histories

  • More error checks

  • and so on.

Project details


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.3.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file Starbucks-0.3.2.tar.gz.

File metadata

  • Download URL: Starbucks-0.3.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Starbucks-0.3.2.tar.gz
Algorithm Hash digest
SHA256 487ce9e65319b653633f14d4d7ab6d33946e718c79fbbeff8e88691217f9ab34
MD5 1dc31ac862f10d6017ff94763ba8a8bc
BLAKE2b-256 72e52a1f231205d7036d7d93f187703bf0beaae078dc07516170f5adf5bea23d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page