it works in sandbox for sms:
Receipt(status=200, response={ "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/665152005/extension/665152005/message-...;, "id" : 2682755004, "to" : [ { "phoneNumber" : "+16304235327", "location" : "Aurora, IL" } ], "from" : { "phoneNumber" : "+13234308604", "location" : "Montebello, CA" }, "type" : "SMS", "creationTime" : "2017-02-13T15:01:47.000Z", "readStatus" : "Read", "priority" : "Normal", "attachments" : [ { "id" : 2682755004, "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/665152005/extension/665152005/message-...;, "type" : "Text", "contentType" : "text/plain" } ], "direction" : "Outbound", "availability" : "Alive", "subject" : "Test SMS using a RingCentral Developer account - test sms content", "messageStatus" : "Sent", "smsSendingAttemptsCount" : 1, "conversationId" : 6361148894337915435, "conversation" : { "id" : "6361148894337915435", "uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/conversation/6361148894337915435"; }, "lastModifiedTime" : "2017-02-13T15:01:48.059Z"}, key=null)
however it doesn't work in production:
Receipt(status=403, response={ "errorCode" : "FeatureNotAvailable", "message" : "[OutboundSMS] permission required", "errors" : [ { "errorCode" : "CMN-408", "message" : "[OutboundSMS] permission required", "permissionName" : "OutboundSMS" } ], "permissionName" : "OutboundSMS"}, key=null)
settings is not editable after applied for production. I don't have ReadAccounts permission, I cannot invoke the get APIs to check if SMS enabled?
may I have the admin or any contact who can solve the issue for me?
I would recommend using the links I have provided above to be certain that the account/extension/phone number have SMS enabled as a feature prior to sending the SMS (and if they do not, and your app has a UI component, displaying the appropriate UI to the user for the unhappy path).
In the meantime, developers should keep in mind that unless the effort to match development (sandbox) accounts to closely match that of live (production) accounts, there are specific steps which should be taken to prevent these types of issues:
When a user first authenticates with your application you should get the account phone number list, and ensure the "features" for any company number you plan on sending an SMS with have "SmsSender" in the list:
https://developers.ringcentral.com/api-docs/latest/index.html#!#RefGetAccountInfo
Before attempting to send an SMS message, you should first verify the following:
1. The Extension has a phone number with the SMS feature enabled https://developers.ringcentral.com/api-docs/latest/index.html#!#RefGetExtensionPhoneNumbers
2. Check the User Permissions to be certain the user has SMS enabled: https://developers.ringcentral.com/api-docs/latest/index.html#!#RefGetUserPermissions (I WOULD RECOMMEND THIS FOR EVERY DEVELOPER AT ALL TIMES)
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