Trying to figure out the best way to setup a RingCentral subscription for new inbound SMS messages. The new SMS messages would be parsed and then forwarded to a Slack channel (don't need help with this part).
The auth part and how to setup my app is confusing me a bit. I think I have my client configured fine, as I was able to send a test SMS message:
client = RingCentralSdk::REST::Client.new do |config|
config.server_url = RingCentralSdk::RC_SERVER_SANDBOX
config.app_key = ##############
config.app_secret = #############
config.username = #############
config.extension = ###
config.password = #############
end
But when I try to create a subscription, it returns an error:
subscription = client.create_subscription
subscription.subscribe(['/restapi/v1.0/account/+##########/extension/###/message-store'])
===>
Subscribe HTTP Request Error: undefined method `-' for nil:NilClass
To be clear, I do not need/want end-users doing anything with the app. I just want to set a subscription for new SMS messages, so I can then create a notification for it in Slack.
Thanks