Skip to main content
The First Step
May 26, 2017
Question

"Invalid resource owner credentials" PHP

I'm just trying to do this:

require('../vendor/autoload.php');  $sdk = new RingCentralSDKSDK('******', '*******', RingCentralSDKSDK::SERVER_SANDBOX);  $sdk->platform()->login('16079303113', '', '********');  


But am getting this error:


Fatal error: Uncaught Exception: Response has unsuccessful status in /var/www/html/vendor/ringcentral/ringcentral-php/src/Http/Client.php:43 Stack trace: #0 /var/www/html/vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(276): RingCentralSDKHttpClient->send(Object(GuzzleHttpPsr7Request)) #1 /var/www/html/vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(363): RingCentralSDKPlatformPlatform->sendRequest(Object(GuzzleHttpPsr7Request), Array) #2 /var/www/html/vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(183): RingCentralSDKPlatformPlatform->requestToken('/restapi/oauth/...', Array) #3 /var/www/html/ajax/fax_prescriptions.php(7): RingCentralSDKPlatformPlatform->login(Array, '', '******') #4 {main} Next RingCentralSDKHttpApiException: Invalid resource owner credentials in /var/www/html/vendor/ringcentral/ringcentral-php/src/Http/Client.php:54 Stack trace: #0 /var/www/html/vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(276): RingCentralSDKHttpClient->s in /var/www/html/vendor/ringcentral/ringcentral-php/src/Http/Client.php on line 54


I have double and triple checked the password.

    9 replies

    The First Step
    May 26, 2017
    George,

    Have you been able to Login successfully into Sandbox Service web with the same credentials:
    https://service.devtest.ringcentral.com

    It looks like your sandbox account has not been activated by the email which you would receive initially. Could you confirm the same for me, please?
    The First Step
    May 26, 2017
    Ah. Thank you! Didn't notice the activation email.
    The First Step
    May 26, 2017
    Is there a way to resend activation?
    The First Step
    May 26, 2017
    I have resent the activation email to the one tied to the developer account. 
    New Participant
    July 21, 2017
    I need the activation email to be resent for my account. Is it possible? Thanks in advance.
    The First Step
    July 24, 2017
    You can resend the activation email by logging into Developer Portal and click on the Top Right Profile Image -> Sandbox Accounts 

    If you do not find an option, kindly provide the name of your Organization or the Main OCmpany Number on Developer Portal and I could re-send the activation email for your sandbox account. 
    New Participant
    August 11, 2017
    I'm having a similar problem. There's no link to re-send Activation email. When I click the Activation link in the email I received, it says I've already been activated, but if I try to login at https://service.devtest.ringcentral.com it says I need to be activated, so I seem to be caught in a loop.

    My organization name is TestMe DNA. How do I get this resolved so that I can get back to building? 
    The First Step
    August 11, 2017
    Hi Lonnie,

    Your Sandbox account should be activated now. Can you login again please?


    The First Step
    August 21, 2017
    FYI.

    I was having the same problem and looked on our Barracuda email security and the email sent was blocked due to bad PTR.