QQConnectRequest

Once authenticated the platform can determine the current players details from the QQ platform and store them within GameSparks.

If the QQ user is already linked to a player, the current session will switch to the linked player.

If the current player has previously created an account using either DeviceAuthenticationRequest or RegistrationRequest AND the QQ user is not already registered with the game, the QQ user will be linked to the current player.

If the current player has not authenticated and the QQ user is not known, a new player will be created using the QQ details and the session will be authenticated against the new player.

If the QQ user is already known, the session will switch to being the previously created user.

Request Parameters

The access token is used by the client to make authenticated requests on behalf of the end user.

doNotCreateNewPlayer

No

boolean

Indicates whether the server should return an error if a new player would have been registered, rather than creating the player. Defaults to false.

doNotLinkToCurrentPlayer

No

boolean

Indicates that the server should not try to link the external profile with the current player. If false, links the external profile to the currently signed in player. If true, creates a new player and links the external profile to them. Defaults to false.

errorOnSwitch

No

boolean

Indicates whether the server should return an error if an account switch would have occurred, rather than switching automatically. Defaults to false.

language

No

string

The player's language

segments

No

JSON

An optional segment configuration for this request.

switchIfPossible

No

boolean

Indicates that the server should switch to the supplied profile if it isalready associated to a player. Defaults to false.

syncDisplayName

No

boolean

Indicates that the associated players displayName should be kept in syn with this profile when it's updated by the external provider.

Response Parameters

A response containing the auth token

Parameter

Type

Description

authToken

string

44b297a8-162a-4220-8c14-dad9a1946ad2

displayName

string

The player's display name

newPlayer

boolean

Indicates whether the player was created as part of this request

scriptData

ScriptData

A JSON Map of any data added either to the Request or the Response by your Cloud Code