Skip to main content

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

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), 'lkjashdlanhsdjasd092390239023902')
feedbackLink = "https://www.sitejabber.com/biz-review?key=API_KEY&payload=" + quote_plus(encryptedData);
print(feedbackLink)

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

sitejabber-utils-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sitejabber_utils-1.0.0-py2-none-any.whl (3.8 kB view details)

Uploaded Python 2

File details

Details for the file sitejabber-utils-1.0.0.tar.gz.

File metadata

  • Download URL: sitejabber-utils-1.0.0.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

Hashes for sitejabber-utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ed739dc749fdf76f74f8a14cfd887618f7f86b231ca79535bb79fe1ec4b71320
MD5 8cd4e579411e63085c976ceb0e928648
BLAKE2b-256 c6ca97e1440884e91f8661e8368728733cf2ac37911f9b60ccfab64e2bcb7816

See more details on using hashes here.

File details

Details for the file sitejabber_utils-1.0.0-py2-none-any.whl.

File metadata

  • Download URL: sitejabber_utils-1.0.0-py2-none-any.whl
  • Upload date:
  • Size: 3.8 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

Hashes for sitejabber_utils-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 163fb68167d4b1f92228b913df97fff306c1f708efdeacb7abfadb5054ed6f9c
MD5 2ccd2ea6538e03e9b77ecf9269956fa0
BLAKE2b-256 8b328a51f5dfe2f0151d975764a0e135a7d7b178ed155b0affa524eeebc882c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page