question

franciscoraposo avatar image
franciscoraposo asked

Getting a player's Login history using the API

Hi, when I use the Game Manager portal to get a player's Login history - https://developer.playfab.com/en-us/r/t/TITLE/players/ID/logins

I notice that the login history is retrieved from a specific call that returns a JSON object: https://developer.playfab.com/api/en-US/TITLE/players/ID/logins/list?token=

This "token" field is empty, but the website uses the cookies to validate my session. Can I actually use that token field to query the same data from the API? Or can I invoke this endpoint from another source without having to login on PlayFab? I need to get that list of logins from the player from an external source so if there's a way to do it it'd be great to know.

I've tried getting the title's entity token and add it to the querystring but it did not work. I'm always getting redirected to the sign in page.

Thank you!

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

In PlayFab Game Manager we call this URL with your PlayFab login cookie setting in the request headers to get the info. You cannot call it without having to login on PlayFab, so with a title level entity token, it also doesn’t work.

For you case, you can refer to Tutorial: Connecting Kusto C# SDK to Insights.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.