question

angad-kaflay8911 avatar image
angad-kaflay8911 asked embbnux-ji2 answered

Getting rcsdk.platform(...).authUrl is not a function

Trying to use the tuorial in the URL https://ringcentral-tutorials.github.io/oauth-js-demo/?distinctId=16197bcf10a97-0973e5a0d1373-a35346... which has the rcsdk.platform().authUrl({ redirectUri: this.config['RC_APP_REDIRECT_URL']

}) code in index.html. So when i try to get the access token i get rcsdk.platform(...).authUrl is not a function

sdk
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

embbnux-ji2 avatar image
embbnux-ji2 answered
Hi, Angad. It seems the demo code is outdated. Please try 'rcsdk.platform(...). loginUrl'   https://github.com/ringcentral/ringcentral-js#login
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys