Non Official Aternos API written in Node.js
Aternos is a legitimate corporation and its benefits comes with ads in the web page. Please use it with responsibility.
git clone https://<url>
cd aternosAPI
npm install
Create .env file in aternosAPI directory.
ATERNOS_USER=your_user
ATERNOS_PASSWORD=your_password
Full .env file looks like this.
ATERNOS_USER=your_user
ATERNOS_PASSWORD=your_password
HOST_NAME=localhost
PORT=3000
API_PASSWORD=strong_password
TOKEN_KEY=vulnerable_token_key
PUBLIC_START=false
PUBLIC_INFO=false
DEBUG=false
- ATERNOS_USER: Required. Aternos account user.
- ATERNOS_PASSWORD: Required. Aternos account password.
- HOST_NAME: Rest mode only. IP or Hostname of the API. Default "localhost".
- PORT: Rest mode only. Port of the API. Default "3000".
- API_PASSWORD: Rest mode only. Required password for get the Token. If not set, entire API is public.
- TOKEN_KEY: Rest auth mode only. Access Token for access. Default "vulnerable_token_key".
- PUBLIC_START: Rest auth mode only. Disable auth for Start route only. If server is started, this route do nothing. Default "false".
- PUBLIC_INFO: Rest auth mode only. Disable auth for Info and Gamedig. Default "false".
- DEBUG: If true show browser navigation. Defaul "false".
If you only have one server, use one of these commands:
npm run rest #for start the rest api, visit printed address for paths
npm run start #starts the server
npm run start-wait #starts the server and wait the queue for confirm
npm run stop #stop the server
npm run restart #restart the server
npm run info #get the name, info and queue
npm run gamedig #get gamedig complete info
If you have multiple servers, you can add --id param:
npm run start -- --id=myserver
or full usage:
node src/index.js --[rest, start [--wait], stop, restart, info, gamedig] [--id=<server id or name>]
Summary can be found on root path.
If the API is password protected:
- Post at /login with json body {"password":"api_password"} for get the token.
- Add to the header "x-access-token" with the token.
- Token is only valid for your IP address.
aternosapi's People
Forkers
starmania tyfangxv benjithatfoxguy maitrekuc bahuma20 rubogubo alextatis immattdavison fatihaziz paimdev fmsanto nightmaregodsopaternosapi's Issues
Error 403
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.