eveseat / seat

🌀✳️ SeAT: A Simple, EVE Online API Tool and Corporation Manager
https://eveseat.github.io/docs/
GNU General Public License v2.0
434 stars 142 forks source link

Feature Request: Add an API endpoint to get the corresponding SeAT user ID from a character ID #738

Closed cannorin closed 3 years ago

cannorin commented 3 years ago

Motivation

Any thirdparty app that wants to utilize SeAT roles/squad has to acquire the user_id corresponding to the character_id. This cannot be easily done with the current SeAT API, as one has to repeatedly call v2/users until it finds a user with the character_id. So it's good to have an API endpoint to accept an character_id and return the corresponding user_id.

Background

I am using SeAT and Dokuwiki with https://github.com/GoldenGnu/dokuwiki-plugin-evesso for my corp. I want to grant permission to view a certain category of wiki pages if a player is in a specific squad and/or has a specific role (i.e. allow cap pilots to see capital doctrines).

The problem here is that v2/roles/* and v2/squads/* work with user_id, and I want to get the user_id from character_id without calling v2/users too many times.