I was pulling the password from a credentials.csv and I realized that even nothing worked, It kept telling me that I was unauthorized.
I switched the first part of the example to run by curl and it passed the password variable through fine.
Step 2 worked as well, but Step 3 I couldn't get it to work.
I then found out why, there was a return carriage in the .csv file some how, even though it didnt look like it.
So this was what I did to solve it. The code looked something like this (bear with me I'm pretty new to coding.)
f = open('login.csv', 'rb')
for field in f.readlines():
fsc = field.rstrip()
password = fsc.split(',')[1]
f.close()
That solved the issue.
... View more