mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
20 lines
379 B
Python
20 lines
379 B
Python
import evelink.api
|
|
import evelink.char
|
|
import evelink.eve
|
|
|
|
|
|
class EveApiManager():
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
|
|
def get_characters_from_api(self, api_id, api_key):
|
|
api = evelink.api.API(api_key=(api_id, api_key))
|
|
# Should get characters
|
|
account = evelink.account.Account(api=api)
|
|
chars = account.characters()
|
|
|
|
return chars
|
|
|