fivesixfive Posted July 21, 2020 Share Posted July 21, 2020 (edited) I have built a script to log myself in and get the token, the session_id, and all that crap; however, I am stuck when I try to do anything requiring the use of aforementioned crap. req = post("https://api.minehut.com/server/<server_id>/start_service", data={x:y}) I assume X needs to be "token" and Y needs to be the token, but what do I actually put? Please help. Edited July 21, 2020 by the_real_cottonful Typo Link to comment Share on other sites More sharing options...
1 fivesixfive Posted July 21, 2020 Author Share Posted July 21, 2020 Solved! Somehow, someway, add headers to your request like this: "x-session-id":<session-id-here> "Authorization":<token-here> Link to comment Share on other sites More sharing options...
0 fivesixfive Posted July 21, 2020 Author Share Posted July 21, 2020 (edited) Gosh, I need help. Edited July 21, 2020 by the_real_cottonful Link to comment Share on other sites More sharing options...
Question
fivesixfive
I have built a script to log myself in and get the token, the session_id, and all that crap; however, I am stuck when I try to do anything requiring the use of aforementioned crap.
I assume X needs to be "token" and Y needs to be the token, but what do I actually put? Please help.
Edited by the_real_cottonfulTypo
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now