Skip to main content
Version: 5.18.17

UpdateFederationEmail

public BackendReturnObject UpdateFederationEmail(string federationToken, FederationType type);

Parameters​

ValueTypeDescription
federationTokenstringFederation token
typeFederationType(enum)Types of federations
FederationType.Google
FederationType.Facebook
FederationType.Apple

Description​

You can store the email information of the existing federation members whose emails have not been collected yet.

Example​

Synchronous​

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

Asynchronous​

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

SendQueue​

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

ReturnCase​

Success cases​

When the email information is updated successfully
statusCode : 204
message : Success

Error cases​

When the user information is not in the BACKND database
statusCode : 404
errorCode : NotFoundException
message : federationId not found, federationId cannot be found