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), API_SECRET)
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.1.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.1-py2-none-any.whl (3.7 kB view details)

Uploaded Python 2

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

Hashes for sitejabber-utils-1.0.1.tar.gz
Algorithm Hash digest
SHA256 64307fe632a50ec2597f0167520c7710fd573795baef97ee195fbda53ce5a6dc
MD5 a7a9936f83a57b86ab4b44caf7c3cb2f
BLAKE2b-256 d3a02a4d8d732a357a10695fc8d85a2a38eb80c74b7aa0d08e536c0725a329c5

See more details on using hashes here.

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

Hashes for sitejabber_utils-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 8a792170479f7fd3b0b7c176aa3d7df72e180a9963b935618bd555709033dae6
MD5 a5e0c8cc671bd3781d004798da8ff68b
BLAKE2b-256 411e255d3f61b0a692549d8bbb90f5c00c4ac74764d4abd040f534c5b550fedd

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