• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Talha · Oct 03 at 06:15 PM · Leaderboards and Statisticsdocumentation

Getting X players

Hi, I wanted to understand how segments work. I've read the documentation but couldnt find it. I've seen how to run actions on all players in a segment but what if I dont want to run any action and just want to see all the players in that segment?

Scenario:

i just want all all players that have xStat stat value==1, how can i get all players with statistic (xStat) value==1?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Oct 04 at 07:55 AM

Here is an example:

The statistic should be predefined as it is a drop-down selection.


snipaste-2019-10-04-15-43-35.png (19.4 kB)
Comment

People who like this

0 Show 9 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Talha · Oct 04 at 10:19 AM 0
Share

I meant how do you see the players indvidually in that segment?

avatar image SethDu ♦ Talha · Oct 07 at 08:45 AM 0
Share

There is a server API: GetPlayersInSegment.

avatar image Talha SethDu ♦ · Oct 07 at 07:45 PM 0
Share

How do one use this API? integrate it into a website or something?Sorry I really dont understand.

Show more comments
Show more comments
avatar image

Answer by SethDu · Oct 10 at 06:10 AM

Then I believe Postman can fulfill your requirement, though the response is raw. The player list for segments will be large, and there should be multiple calls to retrieve the complete data. We usually write a local tool with convenient GUI for management, for example, before the official PlayFab CLI tool is released, I created a C# winform migration tool on my own, and added some personal-use functions there for testing.

Please also note that you are able to delete/add secret key any time in the Game Manager.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Talha · Oct 11 at 11:40 AM 0
Share

Thank God its easy. wait! Can you help me getting through this? is there a step by step guideline to run segments using playfab cli tools?

We usually write a local tool with convenient GUI for management, for example, before the official PlayFab CLI tool is released, I created a C# winform migration tool on my own, and added some personal-use functions there for testing.

avatar image SethDu ♦ Talha · Oct 16 at 05:38 AM 0
Share

Currently, PlayFab doesn't provide corresponding tutorials. Please find dedicated support from .Net/Winform developer community. You may also refer to this documentation for implementing C# SDK.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Playfab ID deleted from my game still being pulled by leaderboard. 3 Answers

    Playfab-Unity Leaderboard with Facebook Login 1 Answer

    Getting all clan members data/account information without making a lot of API calls 1 Answer

    How many previous statistic value versions is returned in PlayerProfileModel.Statistics? 1 Answer

    Leaderboard for each level 1 Answer

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

      • Documentation
      • Quickstarts
      • API Reference
      • SDKs
      • Usage Limits
    • Support

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges