Skip to main content
Version: 5.9.6

CheckUserInBackend

public BackendReturnObject CheckUserInBackend(string federationToken, FederationType type);

Parameter

ValueTypeDescription
federationTokenstringFederation token
typeFederationType(enum)Federation type.
FederationType.Google
FederationType.Facebook
FederationType.Apple

Description

You can check whether the federation user exists in the BACKND server as a gamer.

Example

Synchronous

Backend.BMember.CheckUserInBackend("federationToken", FederationType.Google);

Asynchronous

Backend.BMember.CheckUserInBackend("federationToken", FederationType.Google, (callback) =>
{
// Post-process
});

SendQueue

SendQueue.Enqueue(Backend.BMember.CheckUserInBackend, "federationToken", FederationType.Google, (callback) =>
{
// Post-process
});

Return cases

Success cases

When the federationToken has not been signed up
statusCode : 204

Error cases

When the federationToken has been signed up
statusCode : 200

returnValue : refer to GetReturnValuetoJSON

GetReturnValuetoJSON

The information related to the gamer's federation login information is displayed.

{
"gamer":
{
"os":"android",
"device":"LGE Nexus 5X",
"lastLogin":"2018-08-10T01:17:17.859Z",
"etc":"User's other information",
"osVersion":"Android OS 8.0.0 / API-26 &#40OPR4.170623.006/4286358&#41",
"type":"google"
}
}