Library for user's payload encryption used with Sitejabber.
Project description
Python Utils
Library for user's payload encryption used with Sitejabber.
Installation
Installation is easy using pip. Just run the following on the command line:
pip install sitejabber-utils
Usage
- Get your API keys on https://biz.sitejabber.com/account
- JSON encode your user data
- Call the encrypt method
- URL-encode the result
- Redirect the user to the feedback link
from json import dumps
from sitejabber import utils
try:
from urllib.parse import quote_plus # Python 3+
except ImportError:
from urllib import quote_plus # Python 2.X
userData = {
"email": "janedoe@gmail.com",
"order_date": "06-13-2013",
"order_id": "1234",
"first_name": "Jane",
"last_name": "Doe"
}
encryptedData = utils.encrypt(dumps(userData), API_SECRET)
feedbackLink = "https://www.sitejabber.com/biz-review?key=API_KEY&payload=" + quote_plus(encryptedData);
print(feedbackLink)
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
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 sitejabber-utils-1.0.1.tar.gz.
File metadata
- Download URL: sitejabber-utils-1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64307fe632a50ec2597f0167520c7710fd573795baef97ee195fbda53ce5a6dc
|
|
| MD5 |
a7a9936f83a57b86ab4b44caf7c3cb2f
|
|
| BLAKE2b-256 |
d3a02a4d8d732a357a10695fc8d85a2a38eb80c74b7aa0d08e536c0725a329c5
|
File details
Details for the file sitejabber_utils-1.0.1-py2-none-any.whl.
File metadata
- Download URL: sitejabber_utils-1.0.1-py2-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a792170479f7fd3b0b7c176aa3d7df72e180a9963b935618bd555709033dae6
|
|
| MD5 |
a5e0c8cc671bd3781d004798da8ff68b
|
|
| BLAKE2b-256 |
411e255d3f61b0a692549d8bbb90f5c00c4ac74764d4abd040f534c5b550fedd
|