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
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
Close
Hashes for emarsysauthenticator-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 213a895f040de907bbc887560c1637546da98b0f3ce9a5009ebec08632c7a32d |
|
MD5 | 6586b6b7c7e46bb4cb1f00cf6b26f45f |
|
BLAKE2b-256 | c2f606e453064ded7e6ea6eda0d0031ee225470cdb10cebcb1d135ae0a3772ad |