ExistSocialMediaId
public BackndReturnObject ExistSocialMediaId(string federationToken, FederationType type);
Parameter
Value | Type | Description |
---|---|---|
federationToken | string | Federation token |
type | FederationType(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
Backnd.Player.ExistSocialMediaId("federationToken", FederationType.Google);
Asynchronous
Backnd.Player.ExistSocialMediaId("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 (OPR4.170623.006/4286358)",
"type":"google"
}
}