当用户只使用liburlaapi时如何使用?

2024-05-16 23:00:59 发布

您现在位置:Python中文网/ 问答频道 /正文

如何传输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


Tags: https命令comtokenapijsongettime