Skip to main content
New Participant
October 4, 2021
Question

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) )        });});

    1 reply

    PhongVu
    Community Manager
    Community Manager
    October 5, 2021

    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.