A Python client library for the TCGPlayer API.
Project description
TCGPlayer-API
A Python client library for the TCGPlayer API
Example Usage
>>> from tcgplayer_api.auth import BearerAuth
>>> from tcgplayer_api.client import TCGPlayerClient
>>> PUBLIC_KEY = "x"
>>> PRIVATE_KEY = "y"
>>> auth = BearerAuth(public_key=PUBLIC_KEY, private_key=PRIVATE_KEY)
>>> client = TCGPlayerClient(auth=auth)
>>> client.list_all_categories()
{'totalItems': 61,
'success': True,
'errors': [],
'results': [{'categoryId': 55,
'name': 'Architect TCG',
'modifiedOn': '2018-09-17T15:21:54.233',
'displayName': 'Architect TCG',
'seoCategoryName': 'Architect TCG',
'sealedLabel': 'Sealed Products',
'nonSealedLabel': 'Singles',
'conditionGuideUrl': 'https://store.tcgplayer.com/',
'isScannable': True,
'popularity': 0},
...
]
}
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
tcgplayer_api-0.0.1.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for tcgplayer_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23945c8f8024b4554559b2885ebe23d932a881ff4418f7c155aafd4e350e4e2b |
|
MD5 | 0c4e68b4e88f11a28b377d81700bfac2 |
|
BLAKE2b-256 | 611c0064aa1b176718a1db1255c86c5372536461747e9eeb238719cb3d67aa2b |