API functions acting on an user account (convert, etc.).
|
Promise< Done > | ChangeEmailAddress (string newEmailAddress) |
| Changes the e-mail address of the current user. Works for e-mail type accounts. More...
|
|
Promise< Done > | ChangePassword (string newPassword) |
| Changes the password of the current user. Works for e-mail type accounts. More...
|
|
Promise< Done > | Convert (string network, string networkId, string networkSecret, Bundle options=null) |
| Converts the account to sign in through another network. For instance, you might have created an anonymous account, that you later want to convert to an account logged on through a facebook account. Or, should you later want to convert this account to simply use an e-mail address, this is the method that you will want to call. In order to convert the account successfully, the provided network credentials need to be acceptable, just as when calling CotcSdk.Cloud.Login. More...
|
|
Promise< Done > | Convert (LoginNetwork network, string networkId, string networkSecret) |
|
Promise< Done > | Link (string network, string networkId, string networkSecret, Bundle options=null) |
| Links the account with another social network. Note that unlike Convert, this doesn't change the way the user would then sign in (the credentials remain the same). For instance, one may want to link their facebook account while keeping e-mail credentials in order to be able to share and play against gamers from their facebook social circle. In order to link the account successfully, the provided network credentials need to be acceptable, just as when calling CotcSdk.Cloud.Login. More...
|
|
Promise< Done > | Link (LoginNetwork network, string networkId, string networkSecret) |
|
Promise< Done > | Unlink (string network) |
| Unlinks the account with a social network. More...
|
|
Promise< Done > | Unlink (LoginNetwork network) |
|
Promise< Done > | RegisterDevice (string os, string token) |
| Meant to be called for push notifications. More...
|
|
Promise< Done > | UnregisterDevice (string os, string token) |
| Unregisters a previously registered device (see RegisterDevice). More...
|
|
Promise<Done> CotcSdk.GamerAccountMethods.Convert |
( |
string |
network, |
|
|
string |
networkId, |
|
|
string |
networkSecret, |
|
|
Bundle |
options = null |
|
) |
| |
Converts the account to sign in through another network. For instance, you might have created an anonymous account, that you later want to convert to an account logged on through a facebook account. Or, should you later want to convert this account to simply use an e-mail address, this is the method that you will want to call. In order to convert the account successfully, the provided network credentials need to be acceptable, just as when calling CotcSdk.Cloud.Login.
- Returns
- Promise resolved when the operation has completed.
- Parameters
-
network | The target network to connect with later on. |
networkId | The ID on the network. For example, with the facebook network, this would be the User ID. On e-mail accounts e-mail then, this would be the e-mail address. |
networkSecret | The secret for the network. For e-mail accounts, this would be the passord. For facebook or other SNS accounts, this would be the user token. |
options | An optional JSON to customize the convert process. |