Documentation

GetPlayFabIDsFromGoogleIDs

Retrieves the unique PlayFab identifiers for the given set of Google identifiers. The Google identifiers are the IDs for the user accounts, available as "id" in the Google+ People API calls.

Request Details

GetPlayFabIDsFromGoogleIDsRequest
Request Properties
GoogleIDs (required) List<String>

Array of unique Google identifiers (Google+ user IDs) for which the title needs to get PlayFab identifiers.

POST https://{{TitleID}}.playfabapi.com/Client/GetPlayFabIDsFromGoogleIDs
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "GoogleIDs": [
    "857498576495",
    "759374651209"
  ]
}
        

Response Details

For Google identifiers which have not been linked to PlayFab accounts, null will be returned.

GetPlayFabIDsFromGoogleIDsResult
Result Properties
Data List<GooglePlayFabIdPair>

Mapping of Google identifiers to PlayFab identifiers.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "Data": [
      {
        "GoogleId": "857498576495",
        "PlayFabId": "5a446c83645201"
      },
      {
        "GoogleId": "759374651209",
        "PlayFabId": "6345cd25a6c7cc"
      }
    ]
  }
}

Authentication

SessionTicket

Possible Error Codes

Name Code
AccountNotFound 1001