POST
/
authenticate-player-endpoint
Authenticate Player
curl --request POST \
  --url https://{publisher-server.com}/authenticate-player-endpoint \
  --header 'Content-Type: application/json' \
  --header 'signature: <signature>' \
  --header 'x-publisher-token: <x-publisher-token>' \
  --data '{
  "authMethod": "facebook",
  "token": "sdfddtt7",
  "date": "2024-07-21T14:17:27.329Z",
  "appId": "611392880818819",
  "userName": "expertgamer1979",
  "password": "732hf8820pk!",
  "otp": {
    "playerCode": "974018",
    "accessToken": "9ac888fa33412197b"
  },
  "os": "android",
  "utmSource": "Facebook",
  "utmMedium": "email",
  "utmCampaign": "spring_sale.",
  "sessionId": "2e55b3fc-31ef-6dd7-8161-8aeb376b3a23",
  "playerLocation": {
    "countryCode2": "US",
    "state": "NY"
  }
}'
{
  "status": "valid",
  "playerProfileImage": "https://scontent-iad4-1.xx.fbcdn.net/v/t6.30597-1/84628273_176159830277856_972693363922829312_n.jpg?stp=c379.0.1290.1290a_cp0_dst-jpg_s50x50_tt6&ccb=1-7",
  "publisherPlayerId": "vip2247691",
  "playerName": "Jim Cardashian",
  "sessionMetadata": {
    "abTest": "group1",
    "locale": "en-US"
  }
}

Headers

x-publisher-token
string
required

Publisher token.

signature
string
required

The signed payload.

Body

application/json

Response

Login successful.

The response is of type object.