Skip to main content
The First Step
November 23, 2018
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
November 25, 2018
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
November 26, 2018
Tyler

Thanks again! I will try these.
The First Step
November 26, 2018
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
April 10, 2019
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