Pull Call Data, not authorisation. We have a Google script that pulls the call data from out account to analyse call volumes and imports this into our analytics platform, however recently I've been getting the following error.Request failed for https://platform.ringcentral.com returned code 400. Truncated server response: { "error" : "invalid_grant", "errors" : [ { "errorCode" : "OAU-140", "message" : "Invalid resource owner credentials" } ], "error_d... (use muteHttpExceptions option to examine full response). (line 65, file "ringCentralCallsFetch")No passwords have changed so I have no idea why this is happeningfunction FetchRingCentralCalls(opt_dateFrom, opt_dateTo, opt_SendEmailToZoho) {
// Live environment details
var livePhone = "123456678";
//var livePhone = "myemail";
var livePwd = "password"
var liveClientId = "x";
var liveSecret = "x";
var dateFrom