Skip to main content

Python helper to easily create X-WSSE header for Authentication with Emarsys RESTful API

Project description

emarsysauthenticator

Python helper to easily create X-WSSE header for Authentication with Emarsys RESTful API

Usage

import emarsysauthenticator as ea

# For authentication with Emarsys RESTful API the user name and secret is needed
user_name = 'account_name001'
user_secret = 'abc123def456'

# Create X_WSSE header
xwsse_header = ea.create_xwsse_header(user_name, user_secret)

# Make request
response = requests.request('GET', 'https://api.emarsys.net/api/v2/email', headers=xwsse_header)

Contribution

I am thankful for any feedback and improvements.

License

This project is licensed under MIT License - see the LICENSE.md file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for emarsysauthenticator, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size emarsysauthenticator-0.0.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page