RingCentral RESTful API accept JSON input for SMS. But on SMS JSON input it is giving this error reply:-
{
"message" : "Parameter [to] is invalid",
"errorCode" : "InvalidParameter",
"parameterName" : "to"
}
However, I'm sending correct input as per their documentation
They require input in this format:-
{
"to": [{"phoneNumber": "14151003732"}],
"from": {"phoneNumber": "16509100010"},
"text": "Test SMS message"
}
My JSON input string is:
{ "to": [{"phoneNumber": "+1XXXXXXXXXX"}], "from": {"phoneNumber": "+1XXXXXXXXXX"}, "text": "This is a message" }
Can anyone please point where I'm making mistake? I can post PHP code if required.