Xsolla-logo

Benutzertokenisierung

post/v2/project/{project_id}/inventory/account/signin

Ruft den JWT für Benutzer Ihrer Publishing-Plattform ab, um mit der In-Game Store API zu arbeiten.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer
Default: 44056

Projekt-ID.

Request Body schema: application/json
user_id
required
string

Benutzer-ID aus einer Publishing-Plattform, auf der der Benutzer spielt.

platform
required
string

Publishing-Plattform, auf der der Benutzer spielt.

Enum: "playstation_network" "xbox_live" "xsolla" "pc_standalone" "nintendo_shop" "google_play" "app_store_ios" "android_standalone" "ios_standalone" "android_other" "ios_other" "pc_other"
Responses
200

Das Spielkonto des Benutzers wurde erfolgreich tokenisiert.

401

Basisauthentifizierung nicht bestanden oder falsch. Prüfen Sie die Anmeldedaten und vergewissern Sie sich, dass Sie die Basisauthentifizierung verwenden.

422

Die Eigenschaft user_id ist erforderlich. Prüfen Sie, ob die Eigenschaft in Ihrer Anfrage übermittelt wurde.

Request samples
application/json
{
  • "platform": "xbox_live",
  • "user_id": "platform_user_id"
}
Response samples
application/json
{
  • "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE5NjIyMzQwNDgsImlzcyI6Imh0dHBzOi8vbG9naW4ueHNvbGxhLmNvbSIsImlhdCI6MTU2MjE0NzY0OCwidXNlcm5hbWUiOiJ4c29sbGEiLCJ4c29sbGFfbG9naW5fYWNjZXNzX2tleSI6IjA2SWF2ZHpDeEVHbm5aMTlpLUc5TmMxVWFfTWFZOXhTR3ZEVEY4OFE3RnMiLCJzdWIiOiJkMzQyZGFkMi05ZDU5LTExZTktYTM4NC00MjAxMGFhODAwM2YiLCJlbWFpbCI6InN1cHBvcnRAeHNvbGxhLmNvbSIsInR5cGUiOiJ4c29sbGFfbG9naW4iLCJ4c29sbGFfbG9naW5fcHJvamVjdF9pZCI6ImU2ZGZhYWM2LTc4YTgtMTFlOS05MjQ0LTQyMDEwYWE4MDAwNCIsInB1Ymxpc2hlcl9pZCI6MTU5MjR9.GCrW42OguZbLZTaoixCZgAeNLGH2xCeJHxl8u8Xn2aI"
}