Body Response:
{ "errorCode" : "CMN-102", "message" : "Resource for parameter [extensionId] is not found", "errors" : [ { "errorCode" : "CMN-102", "message" : "Resource for parameter [extensionId] is not found", "parameterName" : "extensionId" } ], "parameterName" : "extensionId" }
Header Response:
X-Rate-Limit-Window : 60
Status_Code : 404
RoutingKey : SJC11P01PAS01
Http_Version : HTTP/1.1
Explanation : Not Found
Connection : close
Content-Language : en-US
Date : Tue, 13 Mar 2018 03:10:55 GMT
X-Rate-Limit-Group : medium
Server : nginx/1.10.2
RCRequestId : 2533297a-266c-11e8-a77d-005056bb26b9
Content-Type : application/json;charset=UTF-8
X-Rate-Limit-Limit : 40
X-Rate-Limit-Remaining : 39
Content-Length : 289
My Code:
<cfset base_url = "https://platform.devtest.ringcentral.com/restapi/"; />
<cfset authorization = setTokenType & " " & setAccessToken />
<cfset ringcentralSMS.to = "to number" />
<cfset ringcentralSMS.from = "from number" />
<cfset ringcentralSMS.text = "This is a test text." />
<cfset body = '{ "to": [{"phoneNumber": "#ringcentralSMS.to#"}], "from": {"phoneNumber": "#ringcentralSMS.from#"}, "text": "#ringcentralSMS.text#" }' />
<cfhttp
method="post"
url="#base_url#v1.0/account/~/extension/~/sms"
resolveurl="no"
getasbinary="never"
charset="utf-8"
>
<cfhttpparam type="header" name="content-type" value="application/json">
<cfhttpparam type="header" name="authorization" value="#authorization#">
<cfhttpparam type="body" value="#body#">
</cfhttp>
{ "message" : "Method Not Allowed", "errors" : [ ] }
X-Rate-Limit-Window : 60
Status_Code : 405
RoutingKey : SJC11P01PAS01
Http_Version : HTTP/1.1
Explanation : Method Not Allowed
Connection : close
Content-Language : en-US
Date : Tue, 13 Mar 2018 20:41:25 GMT
X-Rate-Limit-Group : medium
Server : nginx/1.10.2
RCRequestId : e5a096e2-26fe-11e8-b818-005056bb26b9
Content-Type : application/json;charset=UTF-8
X-Rate-Limit-Limit : 40
X-Rate-Limit-Remaining : 39
Content-Length : 56
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