A simple Python wrapper for Pinterest REST API (Beta) (5.x) ✨ 🍰 ✨
Project description
A simple Python wrapper for Pinterest REST API (Beta) (5.x) ✨ 🍰 ✨
Introduction
This library provides a service to easily use Pinterest REST API for v5.x.
And support Async And sync mode.
Using
The API is exposed via the pinterest.Api class and pinterest.AsyncApi class.
INSTANTIATE
You can initial an instance with access token:
# Sync >>> from pinterest import Api >>> p = Api(access_token="Your access token") # Async >>> from pinterest import AsyncApi >>> ap = AsyncApi(access_token="Your access token")
Usage
Get pin info:
# Sync >>> p.pins.get(pin_id="1022106077902810180") # Pin(id='1022106077902810180', created_at='2022-02-14T02:54:38') # Async >>> await ap.pins.get(pin_id="1022106077902810180") # Pin(id='1022106077902810180', created_at='2022-02-14T02:54:38')
TODO
Docs
Tests
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
python-pinterest-0.1.0.tar.gz
(16.3 kB
view hashes)
Built Distribution
Close
Hashes for python_pinterest-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a821f81f3be4b42b3ace850f0bfdec95c595c5310505cb8bd56638f65f1f94c2 |
|
MD5 | 87b101217b11b5dffc8268f965e5df30 |
|
BLAKE2b-256 | 8005a759fda567605a45b34af6b4e2134df408f0b1f10edeab3c398382e903ec |