如何传输curl命令:
curl -v -u 82xxxxxxxxxxxx63e6:api_token -X GET https://www.toggl.com/api/v6/time_entries.json
进入urlib2?在
我找到了这个教程:http://www.voidspace.org.uk/python/articles/authentication.shtml
但是他们使用密码和用户名。我只能使用API令牌。在
谢谢。在
另请参见以下问题:
Urllib2 raises 403 error while the same request in curl works fine
众所周知,urllib2在身份验证方面花费了大量时间。为了挽救小猫的生命,你应该使用http://docs.python-requests.org/en/latest/index.html
相关问题 更多 >
编程相关推荐