Code Monkey home page Code Monkey logo

minehut-api-docs's Introduction

description
The central page for the API Documentation.

Introduction

Authorization

When authorizing yourself with the Minehut API, you need two values: your token, and your session id.

Currently, there is not a good way to login programmatically, so you will need to grab these two values yourself:

  1. Open the Minehut panel
  2. Press CTRL + Shift + I on the panel to open Developer Tools
  3. Click on the tab named Application in Developer Tools.
  4. Double click Local Storage, and a new panel labeled https://minehut.com will show up. Click that.
  5. Now write down the values of the fields minehut_auth_token and minehut_session_id as your token and session id respectively.
  6. Now, when making a request to an API endpoint that requires authorization, pass your token as the authorization header, and your session id as the x-session-id header.
  7. If all has been done correctly, you should now be authorized.

Base URL

The base URL for the Minehut API is https://api.minehut.com. Whenever you want to make a request to an endpoint, you want to grab it's path and append it to the base URL. For example:

https://api.minehut.com/server/boredcafe?byName=true
https://api.minehut.com/file/5fd6bea356e73b13b37f2527/list//

{% hint style="info" %} Tokens and session ids expire whenever you login or logout of your account. {% endhint %}

minehut-api-docs's People

Contributors

boredkevin avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.