How to use urllib2 when users only have a API token?
Posted
by
jorrebor
on Stack Overflow
See other posts from Stack Overflow
or by jorrebor
Published on 2012-04-08T10:26:57Z
Indexed on
2012/04/08
11:29 UTC
Read the original article
Hit count: 204
how would i tranfoms this curl command:
curl -v -u 82xxxxxxxxxxxx63e6:api_token -X GET https://www.toggl.com/api/v6/time_entries.json
into urlib2?
I found this tutorial: http://www.voidspace.org.uk/python/articles/authentication.shtml
but they use a password and username. I can only use an API token.
Thank you.
see also this question:
Urllib2 raises 403 error while the same request in curl works fine
© Stack Overflow or respective owner