Rick Smith avatar image
Rick Smith asked Rick Smith edited

pubnub to recieving SMS

I am using this code to get SMS with python 3.7 64

It exceutes but when I try to send an SMS I get nothing,

Any Ideas?


from ringcentral import SDK
from multiprocessing import Process
from time import sleep
from ringcentral.subscription import Events

rcsdk = SDK( "yajyakyak", "blahblahxyzpdq", "")
platform = rcsdk.platform()
platform.login("+13135551211", "101", "blahblah")
def on_message(msg):


def pubnub():
s = rcsdk.create_subscription()
s.on(Events.notification, on_message)
res = s.register()
print("Wait for notification...")
except Exception as e:
print (e)
while True:

except KeyboardInterrupt:
print("Pubnub listener stopped...")

p = Process(target=pubnub)
except KeyboardInterrupt:
print("Stopped by User")

sms and text messagingpubnub
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered Rick Smith edited

You sent SMS messages to the phone number +13135551211? Is that the main company number? Does the number belong to extension 101? Could you login the RingCentral softphone with 101 extension to see if you receive the SMS message?

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

As far as I know, It does. I am not using the SoftPhone, but the number seems to work fine for sending SMS. So I am assuming it does.

0 Likes 0 ·

Don't assume, just verify! The code has been tested and I have not seen any other report that it does not work.

0 Likes 0 ·

Ok, it's telling me the password and phone number don't match now.

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys