为foauth.org请求TransportAdapter!
requests-foauth的Python项目详细描述
此模块为请求提供一个foauth.org传输适配器。
简而言之,foauth.org允许您轻松地向oauth'd发送请求 具有HTTP基本身份验证的服务。太棒了
通常,在 重写URL。使用此适配器,所有请求都通过 服务透明
示例用法:
import requests from requests_foauth import Foauth s = requests.Session() s.mount('http', Foauth('username', 'password)) >>> s.get('https://api.500px.com/v1/users/') <Response [200]>