Interact with Target's API
Project description
TargetAPI
Interact with Target's API
Installation
Download from PyPi with pip install TargetAPI
Usage
- Import with
from TargetAPI import Target
- Initialize with
target = Target(api_key="myapikeyhere")
Examples:
- Get stores:
stores = target.stores
- Search for a product:
results = target.search(keyword="PlayStation 5 game console")
- Product reviews:
reviews = results[0].reviews
- Product price:
price = results[0].price
- Product availability:
availability = results[0].availability
- Products on-hand:
print(availability.onhand)
- Availability locations:
locations = availability.locations
- Location phone number:
print(locations[0].store.phone_number)
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
TargetAPI-0.2.0.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for TargetAPI-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a46df955288ae77059c3e761c6ee4828565893f6d002c7c64989bcf0b5dd60e |
|
MD5 | c9d6228be9c3d2c3323dd67e6a9d60f7 |
|
BLAKE2b-256 | 8a3de56412a8dc1e5c4a512a099dab5c86d521d9ce790b16a7bb4cca5faec6cc |