addAccount( identifier, password, callback )
This method does not return anything.
| Name |
Description |
Type |
Use |
| identifier |
Specifies the name of the account. |
string |
required |
| password |
Specifies the password for the account. |
string |
optional |
| callback |
Passed while sending a reply to the request referring to an account and its public
user data. |
object |
required |
The Account object's callback can be structured as
follows:
| Name |
Description |
Return type |
| onFailure |
Indicates that a request was not processed. Passes the error object that
contains two fields: code (a numeric value associated with an
error) and description (the type of failure). Possible failure
types are listed in the Constants table, in the AccountManager article. |
undefined |
| onSuccess |
Indicates that a request was successfully processed. Passes the accountID
object that contains an identifier of the account referred by the calling method. |
undefined |