I have created a sandbox app. I am using RestClient api . With the credentials from my sandbox. Password is my Ringcentral account pasword.
restClient = new RestClient(RINGCENTRAL_CLIENTID, RINGCENTRAL_CLIENTSECRET, RINGCENTRAL_SERVER);
restClient.authorize(RINGCENTRAL_USERNAME, RINGCENTRAL_EXTENSION, RINGCENTRAL_PASSWORD);
I get error on authentication.
AceRoutingKey: sjc11-c01-ace11.1e06d9b3-8c80-11eb-971a-005056bb8878
11:27:09,559 ERROR [stderr] (test task-9) RoutingKey: SJC11P01
11:27:09,559 ERROR [stderr] (test task-9)
11:27:09,559 ERROR [stderr] (test task-9) {
11:27:09,559 ERROR [stderr] (test task-9) "error" : "invalid_grant",
11:27:09,559 ERROR [stderr] (test task-9) "errors" : [ {
11:27:09,559 ERROR [stderr] (test task-9) "errorCode" : "OAU-140",
11:27:09,559 ERROR [stderr] (test task-9) "message" : "Invalid resource owner credentials"
11:27:09,559 ERROR [stderr] (test task-9) } ],
11:27:09,559 ERROR [stderr] (test task-9) "error_description" : "Invalid resource owner credentials"
11:27:09,559 ERROR [stderr] (test task-9) }
Please let me know what is wrong here? I have setup the sanbox as per teh instruction specidfied for password authentication type.