News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Resource for parameter [extensionId] is not found - SMS Send - With Password Flow
Tags: sms and text messaging
Mar 12, 2018 at 8:15pm   •   2 replies  •  0 likes
jason4335


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>








2 Answers
answered on Mar 13, 2018 at 1:42pm  
I updated the code...is it passing the tilde character now, because I'm getting this:

{ "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

 0
answered on Mar 12, 2018 at 11:20pm  
ColdFusion server by some reason escapes tilde character so backend receives request like "/restapi/v1.0/account/%7E/extension/%7E/sms". Can you turn off escaping? 

 0



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us