Jersey HMAC Auth的Python客户端(https://github.com/bazaarvoice/jersey-hmac-auth)
python-hmac-auth的Python项目详细描述
#python hmac auth
python客户端库的hmac身份验证。
此库使您可以轻松地在python客户端中添加对hmac身份验证的支持:
1。与使用
[jersey hmac auth](https://github.com/bazaarvoice/jersey-hmac-auth)实现hmac身份验证的rest api接口,以及
2。使用python[请求](http://docs.python-requests.org)库进行api调用。
它的工作原理是为请求库提供一个自定义的身份验证器,该验证器修改传出的api调用以编码对hmac身份验证的请求。
导入“hmac auth”类,并在发出api调用时在“auth”参数上指定它:
``python
import requests
from python\u hmac\u auth import hmacauth
response=requests.get('http://example.com/api',auth=hmacauth('your\u api\u key',“您的“秘密密钥”)
```
git@github.com:bazaarvoice/python hmac auth.git
````
python客户端库的hmac身份验证。
此库使您可以轻松地在python客户端中添加对hmac身份验证的支持:
1。与使用
[jersey hmac auth](https://github.com/bazaarvoice/jersey-hmac-auth)实现hmac身份验证的rest api接口,以及
2。使用python[请求](http://docs.python-requests.org)库进行api调用。
它的工作原理是为请求库提供一个自定义的身份验证器,该验证器修改传出的api调用以编码对hmac身份验证的请求。
导入“hmac auth”类,并在发出api调用时在“auth”参数上指定它:
``python
import requests
from python\u hmac\u auth import hmacauth
response=requests.get('http://example.com/api',auth=hmacauth('your\u api\u key',“您的“秘密密钥”)
```
git@github.com:bazaarvoice/python hmac auth.git
````