API
Api Urls
https://s200.etm.dev/auth <- Test the credentials
https://s200.etm.dev/transaction/[UserName]/latest
https://s200.etm.dev/shop/[UserName]/[world]
https://s200.etm.dev/userstats/[UserName]/[datetime] (2020-05-24T14:00) partial allowed!
https://s200.etm.dev/user/[UserName]
https://s200.etm.dev/server/playerlocations/[world] <-- Needs /user ksonpubliclocation ON !
https://s200.etm.dev/land/[UserName]/[world]
Transactions for the whole day:
https://s200.etm.dev/transaction/Kademlia/day/2020-05-31T00:00 // Hit the day you want with the datetime
https://s200.etm.dev/transaction/Kademlia/month/2020-05-01 // Hit the month you want with the date
UUID Lookups:
https://s200.etm.dev/mojang/name/{uuid}
https://s200.etm.dev/mojang/names POST with a list of UUID[]
Pods:
https://s200.etm.dev/pod/{username:.+}/{podName:.+}
Currently only one working: https://s200.etm.dev/pod/NAME/Technology
These calls need authentication. To auth you need to:
1. Go on the server and enable the api calls for your account with: /user api on
2. Copy your secret with: /user secret
3. Call the URL with HEADER-Parameter "Auth" and value: {"userName":"USERNAME","secret":"YOURSECRET"}
curl -H "Auth:{\"userName\":\"Kademlia\",\"secret\":\"xxxxxxxxxxxxxx\"}" https://s200.etm.dev/transaction/Kademlia/latest
curl -H "Auth:{\"userName\":\"tigerjunge15\",\"secret\":\"F4kWNs7UKfUss7XKdJE8P9DOwFrQB2RvTYx+hPFWGoGZaC/NrSIyEg==\"}" https://s200.etm.dev/transaction/tigerjunge15/latest
https://s200.etm.dev/userstats/tigerjunge15/2020
https://s200.etm.dev/userstats/tigerjunge15/2020-05
https://s200.etm.dev/userstats/tigerjunge15/05-24
https://s200.etm.dev/userstats/tigerjunge15/2020-05-24
Latest transactions example
Http-Header "Auth" with value: {"userName":"tigerjunge15","secret":"F4kWNs7UKfUss7XKdJE8P9DOwFrQB2RvTYx+hPFWGoGZaC/NrSIyEg=="}"
Url: https://s200.etm.dev/transaction/tigerjunge15/latest
{"userName":"Lasergott","secret":"fe6FeQsgDDWybNAZsXEHsdgQ7nIXprUd/feIBRMD4ifqdvWnV98bnA=="}"