www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources Mojo Services API palm://com.palm.accounts/crud - createAccount - Synergy Account Creation

palm://com.palm.accounts/crud - createAccount - Synergy Account Creation

Service that can be used to create a Synergy Account in any Synergy-supported application (currently, contacts, email, calendar and messaging).  This is necessary to be able to add data to these applications.  See this tutorial for a more detailed description of Synergy accounts.

Example usage:

this.controller.serviceRequest('palm://com.palm.accounts/crud', {
     method:   'createAccount',
     parameters: {
            username: "myusername",
            domain: "mydomain",
            displayName: "My Name",
            icons: {largeIcon: '../accountIcon.png', smallIcon: '../stampIcon.png'},
            dataTypes: ["CONTACTS", "CALENDAR"],
            isDataReadOnly: false
            },
     onSuccess: this.accountCreated.bind(this);
     onFailure: function(response)  {
            Mojo.Log.info("Account create failed; ", response.errorText}
            }
});