Jump to content
  • 0

Minehut API Authorization help


sadadsadsd231

Question

I'm trying to make a bot for my minehut server, and I want to start the server with the bot. I'm having trouble at the authorization part because it always says that my session has expired even if it hasn't. I can't seem to figure out the API headers.

 

@client.command()
async def start(ctx):
  payload = {"authorization": "djskj123i2130239", "x-session-id": "kjlhijofghu89238723912"}
  r = requests.post("https://api.minehut.com/server/myserverid/start_service", data=payload)
  print(r.text)

(the authorization thing and session id thing are obviously fake)

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...