make authJson = {“Authorization”: requests.post(“https://api.wasteof.money/session”, {“username”:”here”,”password”:”pwd”).json()[“token”])}

might be a bit goofed up as I'm in class

might be a bit goofed up as I'm in class

says it’s incorrect, can you put it together pls? sorry :(

what's incorrect? what's the error?

authJson = {"Authorization":requests.post("https://api.wasteof.money/session", json={"username":"username here","password":"pwd here"}).json()["token"]}

View all comments