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