question

Harsh Tilwani avatar image
Harsh Tilwani asked Phong Vu answered

can't login in python module (error:Invalid resource owner credentials). what to do I am using same credentials?

can use RC video APIs in node.js sdk but can't login in python module (error:Invalid resource owner credentials). what to do I am using same credentials?

Python:

from ringcentral import SDK

sdk = SDK('zxxxxxxxxxxxxxw''Dcdxxxxxxxxxxxxxxxxxxxxx''https://platform.ringcentral.com')platform = sdk.platform()platform.login('harsh.tilwani@leadsquared.com'100'xxxxxxxxx')res = platform.get('/rcvideo/v1/history/meetings')print(res.json())


node:

const SDK = require("@ringcentral/sdk").SDK;
RINGCENTRAL_CLIENTID = "zxxxxxxxxxxxxw";RINGCENTRAL_CLIENTSECRET = "Dcdxxxxxxxxxxxxxxxxxxxxxxxxfw";RINGCENTRAL_SERVER = "  https://platform.ringcentral.com";
RINGCENTRAL_USERNAME = "harsh.tilwani@leadsquared.com";RINGCENTRAL_PASSWORD = "xxxxxxxxx";RINGCENTRAL_EXTENSION = 100;
var rcsdk = new SDK({
                      server: RINGCENTRAL_SERVER,    clientId: RINGCENTRAL_CLIENTID,    clientSecret: RINGCENTRAL_CLIENTSECRET});var platform = rcsdk.platform();platform.login({
                      username: RINGCENTRAL_USERNAME,    password: RINGCENTRAL_PASSWORD,    extension: RINGCENTRAL_EXTENSION    })    .then(function(resp) {
                        platform.get('/rcvideo/v1/history/meetings', {
                              })        .then(function(resp) {
                            return resp.json()        })        .then(function (json) {
                              console.log(JSON.stringify(json) )        });});
errors
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

Phong Vu avatar image
Phong Vu answered

It means that you are using wrong user login credentials. Are you sure about the extension number "100"? Double check it our omit it because it seems you login with your own email address.

You can always double check if your user credentials are correct by login with the same credentials to your account online portal.

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