Skip to main content

To log in to RingCentral, get the Platform object and call its authorize method, providing valid username, extension, and password values. Enter your phone number in E.164 format for username. The + may be omitted.

A Promise is returned, and you can use its then method to specify your continuation function, and its catch method to specify an error handling function.

var platform = rcsdk.getPlatform();
platform.authorize({
username: '+18001234567', // your phone number in E.164 format
extension: '101', // leave blank if direct number is used
password: 'yourpassword'
}).then(function(ajax) {
// your code here
}).catch(function(e) {
alert(e.message || 'Server cannot authorize user');
});
Be the first to reply!

Reply