Rite Aid API
This package allows for interactions with the Rite Aid API.
Here is an example of how to use the package:
from riteaid import RiteAidAPI
async def main():
api = RiteAidAPI()
# Get a list of stores for ZIP Code 94025
stores = await api.get_stores("94025")
print(stores)
# {"Data":
# {"stores":
# [
# {
# "storeNumber":5892,
# "address":"340 Woodside Plaza",
# "city":"Redwood City",
# "state":"CA",
# "zipcode":"94061",
# "timeZone":"PST",
# "fullZipCode":"94061-3259",
# "fullPhone":"(650) 368-7008",
# "locationDescription":"Located at 340 Woodside Plaza Woodside Plaza Next To Lucky's",#
# "storeHoursMonday":"7:00am-10:00pm",
# "storeHoursTuesday":"7:00am-10:00pm",
# "storeHoursWednesday":"7:00am-10:00pm",
# "storeHoursThursday":"7:00am-10:00pm",
# "storeHoursFriday":"7:00am-10:00pm",
# "storeHoursSaturday":"7:00am-10:00pm",
# "storeHoursSunday":"8:00am-10:00pm",
# "rxHrsMon":"9:00am-8:00pm",
# "rxHrsTue":"9:00am-8:00pm",
# "rxHrsWed":"9:00am-8:00pm",
# "rxHrsThu":"9:00am-8:00pm",
# "rxHrsFri":"9:00am-8:00pm",
# "rxHrsSat":"9:00am-6:00pm",
# "rxHrsSun":"10:00am-6:00pm",
# "storeType":"RA",
# "latitude":37.4565,
# "longitude":-122.229,
# "name":"Rite Aid",
# "milesFromCenter":2.5,
# "specialServiceKeys":[...],
# "event":null,
# "holidayHours":[],
# "pickupDateAndTimes":
# {
# "regularHours":
# [
# "11:00 AM-5:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-7:00 PM",
# "10:00 AM-5:00 PM"
# ],
# "specialHours":
# {
# "2022-02-19":"10:30 AM-5:00 PM",
# "2022-02-20":"11:00 AM-5:00 PM"
# },
# "defaultTime":"2022-02-20 1:00 PM",
# "earliest":"2022-02-19 10:30 AM"
# }
# }
# ]
# },
# "Status":"SUCCESS",
# "ErrCde":null,
# "ErrMsg":null,
# "ErrMsgDtl":null
# }
# }
# Refill an Rx
refill = await api.refill_rx([
"123456789012", # Rx Number
"123456789012", # Rx Number
"123456789012", # Rx Number
],
"5892", # Store Number
"2022-02-20", # Refill Date
"1:00 PM", # Refill Time
"6058392845", # Phone Number
)
print(refill)
# I have not tested a succesful refill yet, since I don't have the need for a refill at the moment.
get_stores
| Parameter | Description |
|---|---|
| zipcode | ZIP Code |
refill_rx
| Parameter | Description |
|---|---|
| rx_numbers | Rx Numbers |
| store_number | Store Number |
| refill_date | Refill Date |
| refill_time | Refill Time |
| phone_number | Phone Number |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
riteaid-0.0.9.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file riteaid-0.0.9.tar.gz.
File metadata
- Download URL: riteaid-0.0.9.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41873e638cfcbba17fe139b5b66e819c0c8c983e8a9e5e495429356c9d50c6eb
|
|
| MD5 |
7e8628e4d17e31179778c1d41379efe1
|
|
| BLAKE2b-256 |
4bc634648f422d223989a6c6a733e975870bb292990b0e2ca7fc5bf4aaf03191
|
File details
Details for the file riteaid-0.0.9-py3-none-any.whl.
File metadata
- Download URL: riteaid-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94427c406bc10f497f1da226b4ec106a9b79eb4cbcc12f9a69f9d8b655ef9918
|
|
| MD5 |
7abdc63a7677f03872d5bec3afec1c15
|
|
| BLAKE2b-256 |
9d418749c15fc04d4da70bf6e3a5098c6a9f83201c8fb15c7316b31fc6339e98
|