Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add ability to fetch CharacterID #64

Open
mgibula opened this issue Aug 12, 2020 · 2 comments
Open

Add ability to fetch CharacterID #64

mgibula opened this issue Aug 12, 2020 · 2 comments

Comments

@mgibula
Copy link

mgibula commented Aug 12, 2020

Is there some publicly accessible API function for getting character ID from the token?

I can see that GuzzleFetcher already have all things required to read this from verifyToken(), but I can't find a way to access if without hacking the source.

@warlof
Copy link
Member

warlof commented Aug 12, 2020

Hi @mgibula

Sounds a odd workflow, but from eseye you can do the following
$eseye->getAuthentication()->access_token - then, you can parse the string using JWT library and you'll get the character ID in it.

@mgibula
Copy link
Author

mgibula commented Aug 12, 2020

Yeah, I also found out $esi->rawFetch() can be used to make custom call to /verify, which is also odd.
I believe a public function to fetch this info would make live easier for newcomers:-)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants