question

364321644 avatar image
364321644 asked

GetRegionPlaylists

I quite don't know the mean about playlists in this old api. And how can I replace it by playfab api.

/GameAcquisition/GetRegionPlaylists

HTTP calling method : GET

Summary

Get statistics about game server mode playlists.

Authentication

User session ticket

Request Details

BuildVersion:String(Required) - version of build we want to get stats for
Region:String(Region)(Required) - region we are interested in
TitleId:Number(Optional) - is the specific game ID granted by PlayFab via the website, found on the end of the URL once you are logged in and looking at a specific game

Sample Request

GET https://uberent.com/gameacquisition/getregionplaylists?BuildVersion="5.01"&TitleId=2073&Region=3

Success Response Details

Playlists:Array of Object(PlaylistInfo)- array of games in regions found matching the request parameters

Success Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "Playlists": [
    {
      "PlaylistId": "345346346",
      "GameCount": 20,
      "GamePlayersCount": 79
    },
    {
      "PlaylistId": "3456346566",
      "GameCount": 32,
      "GamePlayersCount": 112
    }
  ]
}
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

·
brendan avatar image
brendan answered

You can use https://api.playfab.com/documentation/client/method/GetCurrentGames to get a listing of all active hosted game sessions. I would also recommend reviewing these two guides on using custom game servers with PlayFab:

https://api.playfab.com/docs/tutorials/landing-tournaments/custom-game-servers

https://api.playfab.com/docs/tutorials/external-game-servers

6 comments
10 |1200

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

364321644 avatar image 364321644 commented ·

I found that playlist represent for game mode. Can I get the same info for each game mode by one request without providing gamemodes. Or I need to have a list of gamemode and make the same number of requests with gamemode.

0 Likes 0 ·
brendan avatar image brendan 364321644 commented ·

GameMode is not a required parameter in that call. So yes, you could call GetCurrentGames, and get all information for all active games, irrespective of GameMode.

0 Likes 0 ·
364321644 avatar image 364321644 brendan commented ·

GameMode is not a required parameter in that call and /GetCurrentGames.But without GameMode parameter that call would return gamecount and playercount for each GameMode meanwhile /getcurrentGames would return total playercount and gamecount.

If I want to get gamecount and playercount for each GameMode.I could just call /GetCurrentGames for each gamemode. Did I understand correctly.

0 Likes 0 ·
Show more comments
Show more comments

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.