API Reference
Base URL
https://odyn-backend.fly.dev/
Authorization
Requests must include an Authorization header that contain a Bearer token. Contact us on https://discord.gg/kapgamesgg to receive your token. Example:
Authorization: Bearer YOUR_TOKEN_HERE
Player information
Returns player achievement information with the following achievements:
playtime (currently always 0)
ships_sunk (currently always 0)
matches_played
damage_dealt (currently always 0)
nuggies_extracted_captain
nuggies_extracted_company
total_nuggies
Endpoint
GET https://odyn-backend.fly.dev/games/playerinfo/
Parameters
email
: mandatory. User email.start_date
: optional. Date from which to calculate metrics. Inclusive.capnco_username
: optional. Until when to include metrics. Exclusive.
Example response
{
"id": 1,
"username": "test",
"email": "[email protected]",
"game_id": 97,
"achievements":[
{
"game_achievement_id": "playtime",
"score": 0
},
{
"game_achievement_id": "ships_sunk",
"score": 0
},
{
"game_achievement_id": "matches_played",
"score": 1
},
{
"game_achievement_id": "damage_dealt",
"score": 0
},
{
"game_achievement_id": "nuggies_extracted_captain",
"score": 20000
},
{
"game_achievement_id": "nuggies_extracted_company",
"score": 1000
},
{
"game_achievement_id": "total_nuggies_extracted",
"score": 21000
}
]
}
Last updated