yotpo api integration
Project description
yotpo API
This is a package to integrate and model the data structure and wrap the api calls made to use the yotpo api.
Install
pip install yotpo-api
Usage
Authentication
To use the yotpo api you need to provide your yotpo api key and api secret either by passing them as kwargs to the client init
client = YotpoClient(api_token, api_secret)
either by setting them as env vars named YOTPO_API_TOKEN and YOTPO_API_SECRET so they are automatically used by the client when there kwargs are not provided.
client = YotpoClient()
Getting reviews
client.get_reviews()
optionally providing the product id and the from date params.
Creating reviews
client.create_review(
{
"product_title": "product_title",
"product_url": "https://www.sephora.com/something",
"display_name": "John Doe",
"email": "jone.dow@gmail.com",
"review_content": "the fragrance is good, even thou the texture got worse, anyway, still great value.",
"review_title": "great value",
"review_score": 5,
}
)
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
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 yotpo-api-0.0.5.tar.gz.
File metadata
- Download URL: yotpo-api-0.0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38a7e90800ce675dbbd62a0e67be53f58d48f1def23bb68f9e9d0ce97e493c28
|
|
| MD5 |
69699fd552e1a7ed8c7245e8b2f1efbd
|
|
| BLAKE2b-256 |
00aa06a5c357b0b56059116e8c573c545e15a2f460130daafa264e662407ee58
|
File details
Details for the file yotpo_api-0.0.5-py3-none-any.whl.
File metadata
- Download URL: yotpo_api-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebfc6c7790f57c2f537da5caaf2c46fcf24dc6fd1d4d178d08f2939ca966ce58
|
|
| MD5 |
cab701c028317d64698edeba55793bc8
|
|
| BLAKE2b-256 |
bbad18b1702d2707fdb33533a25a80b7310f5cb7310f13346426e375399f34d1
|