News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
RingCentral PHP SDK throwing Uncaught exception InvalidArgumentException on login
Tags: sdk
May 21, 2016 at 9:26am   •   3 replies  •  0 likes
numan-ilyas

Hi All,


I am trying to use RingCentral PHP SDK to send SMS. When I use code from demo then I get error shown in below screenshot. When I use JS SDK with same credentials then I am able to successfully send SMS. Following is my code for php:


use RingCentral\SDK\SDK;

// require_once(__DIR__ . '/vendor/_bootstrap.php');

require(__DIR__ . '/vendor/autoload.php');


$rcsdk = new SDK('appKey', 'appSecret', SDK::SERVER_SANDBOX);

$platform = $rcsdk->platform();


$platform->login('sandbox_no', '', 'password');


Please let me know if I am missing something or I need to install any additional component.




Regards,

Numan Ilyas

3 Answers
answered on May 22, 2016 at 11:03am  
Thanks John. Really appreciate the quick response.

 0
answered on May 22, 2016 at 9:57am  
Thanks for posting this as issue #29 on the SDK repo and working with the team to resolve this. I'm going to close this here since it's been posted and resolved at this GitHub link:

https://github.com/ringcentral/ringcentral-php/issues/29

 0
answered on May 21, 2016 at 10:37am  
Since this appears to be an issue with the PHP SDK, can you report this against the SDK here:

https://github.com/ringcentral/ringcentral-php/issues

Thanks.

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us