Sorry for the questions, but struggling with this simple problem.
If the required curl syntax is:
"curl --user <my_username>:<my_password> https://data.tankutility.com/api/getToken"
How would you translate to the correct syntax for urlib2.urlopen? I tried a few combinations of the following without success
urlReturned = urllib2.urlopen('https://data.tankutility.com/api/getToken?user=*username:password*&device=*token_name*')
Thank you in advance.
JP