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
Cannot make SMS quick start example work, please help!
Tags: getting started
Apr 30, 2021 at 6:58am   •   2 replies  •  0 likes
Minh Vuong

I tried to follow instruction in https://developers.ringcentral.com/guide/messaging/quick-start#c# using my sandbox credential number +13133982564. However, I cannot go pass the Autorize code:

restClient.Authorize(RINGCENTRAL_USERNAME, RINGCENTRAL_EXTENSION, RINGCENTRAL_PASSWORD).Wait();

I got the error: "StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: ...".

Could anyone give me some advice on this?

2 Answers
answered on May 5, 2021 at 11:55am  

Thanks Phong, I have removed the incorrect type app and used the client id/secret from the quick start template. I tested with Australian number and got error "MSG-240" saying "International SMS is not available for account". Do I need to upgrade my account?


 0
on May 5, 2021 at 12:48pm   •  0 likes

Sandbox account does not support international call, nor international SMS. If you just want to test SMS API call, you can login your sandbox service web, add a new user with a new direct number, you can then send SMS message from one users phone number to another user's phone number.

answered on Apr 30, 2021 at 8:45am  

I see you have 2 test apps, one of that is your own creation and the other one created by the quick start template. The one you created is incorrect type for the quick start code.

Double check the app client id and client secret you are using in your code. You must use the client id and client secret of the "SMS Quick Start App" app.


 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