thenamelessdev-api-docs

Authed API endpoints

All API andpoints that require a auth header or login Authing information here

GET /verify

Verifies you api key. Successful status code: 204

try

GET /clicks

Gets the currect clicks in the cookie clicker project Succesful response: 200 {clicks: CLICK_COUNT}

try

GET /ttt/rooms?room=

Gets the room. Use the required room query to specify the room name Successful response: 200 {room: name: ROOM_NAME, host: ROOM_HOST, player: PLAYYER} Error responses:

try

POST /encode

Encodes a text x times in Base64 Request body: {“text”: TEXT TO ENCODE, “times”: ENCODE THIS MANY TIMES} Succesful response: 200 {output: ENCODED OUTPUT} Errors: 400 times in NaN, 500 error while encoding

try

POST /decode

Decodes a text x times in Base64 Request body: {“text”: TEXT TO DECODE, “times”: DECODE THIS MANY TIMES} Succesful response: 200 {output: ENCODED OUTPUT} Errors: 400 times in NaN, 500 error while decoding

try

GET /typeword/rooms?room=

Gets a specific room Successful response: 200 {room: {name: ROOM_NAME, host: ROOM_HOST, player: ROOM_PLAYER, winner: ROOM_WINNER}} Errors: 400: missing room query, 404: room not found