Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on eventfrontier.com

5 replies

Successful Login automatically initiates a GetSite operation, which contains person_id:

op.data.my_user.local_user_view.local_user.person_id

and username:

op.data.my_user.local_user_view.person.name

Maybe that will do it.

2
vlemmy.net

You’ll want to save the JWT and then use it as the auth parameter for GetPersonDetails

2
eventfrontier.com

This doesn't work either. Only passing in an auth parameter into GetPersonDetails is not valid and returns an error.

0

Oh strange I would assume you would want to either include the id or the username, whatever the documentation asks for. You can also always just use the GetSite endpoint and GetSiteResponse.my_user

1

You reached the end

How to get `person_id` from currently logged in user in API? | Spyke