Skip to main content
The First Step
Nov 23, 2018 2:13 PM UTC
Question

Recieve SMS using C#

How can I receive SMS using C#


So I can send SMS using the api. But can't seem to find a way to receive them. Is it even possible? At this point I think I need something like ngrok? But Im not sure where to start.


Thanks In Advance

4 replies

Employee
Nov 25, 2018 8:38 AM UTC
If you want to receive sms in real time, check this: https://github.com/ringcentral/ringcentral-csharp-client/blob/master/RingCentral.Test/SubscripotionT... It is powered by PubNub, so you don't need ngrok.

Alternatively, you can check WebHook which does require a public address: https://github.com/ringcentral/ringcentral-csharp-client/blob/master/RingCentral.Test/WebHookTest.cs

Or if you don't need real time sms notification, you can retrieve sms via HTTP GET /restapi/v1.0/account/~/extension/~/message-store

The First Step
Nov 26, 2018 1:35 PM UTC
Tyler

Thanks again! I will try these.
The First Step
Nov 26, 2018 3:39 PM UTC
Tyler

Hmm I just plugged it in and tried the PubNub variant, It has an error can't quite figure out.

 await subscription.Register(); //Throws Object Reference not set to instance of object...



PhongVu
Community Manager
Community Manager
Apr 10, 2019 2:47 PM UTC
Hi Rick,

Alternatively, check out this quick start for what you want to achieve.

https://developers.ringcentral.com/guide/notifications/quick-start/pubnub/c-sharp