succpw Posted May 27, 2020 Share Posted May 27, 2020 Hi there, I couldn't find the authentication required for the Minehut API. It says in the docs "Requires authorization." but I can not find how to get authorization. I guessed this would be with request headers, but can anyone tell me the type? Thanks! Link to comment Share on other sites More sharing options...
KJPAKA Posted May 27, 2020 Share Posted May 27, 2020 Please specify where this happens. Active Minehut Player since 2016 Advanced at Skript - Know a lot about running a server If you need help with anything contact me @ KJPAKA#0001 Link to comment Share on other sites More sharing options...
nicholxs Posted May 28, 2020 Share Posted May 28, 2020 Requires authorization means it's limited to staff. First Joined: July 2015VIP: January 2020Jr.Mod: 1st April 2020Mod: 16th July 2020Info:~ Skript Developer ~ Discord: @nicholxs#0001 ~ Previous names: Nichxlxs, Deterno, iHaveSkills, Retrical Link to comment Share on other sites More sharing options...
iGalaxy Posted May 30, 2020 Share Posted May 30, 2020 POST /users/login with the email and password should return a token and a session ID. You will need "authorization" and "x-session-id" headers for any request that requires authorization. If you do not send a request every few minutes, the session will expire and a new one will be needed. "Requires authorization" does not mean it's limited to staff. I have some code examples using JS, but I'm replying on my phone right now, so let me know if you need them and I can provide them. 1 Member of the Minehut community since June 2016 Contact me on Discord: @iGalaxy#2018 Check me out on the Minehut Market: Click Here Link to comment Share on other sites More sharing options...
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