python助手可以轻松创建x-wsse报头,以使用emarsys restful api进行身份验证
emarsysauthenticator的Python项目详细描述
emarsysauthenticator
python助手可以轻松创建x-wsse报头,以便使用emarsys restful api进行身份验证
用法
importemarsysauthenticatorasea# For authentication with Emarsys RESTful API the user name and secret is neededuser_name='account_name001'user_secret='abc123def456'# Create X_WSSE headerxwsse_header=ea.create_xwsse_header(user_name,user_secret)# Make requestresponse=requests.request('GET','https://api.emarsys.net/api/v2/email',headers=xwsse_header)
贡献
我很感谢你的反馈和改进。
许可证
此项目是在麻省理工学院许可下授权的-有关详细信息,请参见LICENSE.md文件