I'm having issues while sending mms using sandbox phone number.
My app has not been graduated yet for production.
When I'm using sandbox no for sending mms in office api console: it gives error: parameter[object object] is invalid, from number does not belong to you.
when i'm using same in curl format it gives 101 error as parameter value is invalid both in app and postman.
However I am able to send msgs from same number successfully.
Don't know whats the issue.
Having doubt that when app is in production then we can send mms from prod number?
Any help would be much appreciated.
Thanks
Hi Constantine, you can try our Embeddable widget in sandbox to find what data to send in MMS api.
https://ringcentral.github.io/ringcentral-embeddable
How to switch sandbox environment: https://github.com/ringcentral/ringcentral-embeddable/issues/97#issuecomment-377537326
MMS is getting sent from widget successfully , but not from sms api.
Thanks for your help .
- {"errorCode":"InvalidParameter","message":"Parameter [attachments] value is invalid.","errors":[{"errorCode":"CMN-101","message":"Parameter [attachments] value is invalid.","parameterName":"attachments"}],"parameterName":"attachments"}
I'm having this error while calling the mms api.
Thanks for your help
I can't see your code so I still cannot say why. But the error message is clear that "invalid" parameter and that means your input IS NOT correct. It could be the media content is not supported. You can quick test by sending a simple small .png or .jpg image to see if it gets thru.
lists = List();
res5 = zoho.encryption.base64Encode(get_attachments);
// info res5;
attch = Map();
attch.put("type","multipart form-data");
attch.put("name",get_attachments);
// attch.put("base64",res5);
data = "type:image/jpeg;" + "name=" + get_attachments + ";base64," + res5;
lists.add(data);
params.put("attachments",lists);
info params;
send_mms = invokeurl
[
url :"https://platform.devtest.ringcentral.com/restapi/v1.0/account/" + accID + "/extension/" + extensionId + "/mms"
type :POST
parameters:params.toString()
headers:header
];
info send_mms;
url :"https://platform.devtest.ringcentral.com/restapi/v1.0/account/"; + accID + "/extension/" + extensionId + "/mms"
There is no such an API called "/mms". Change it to "/sms"
/sms with an attachment is MMS
its showing the same error .
sending a png file and value in attachement as :
data = "type:image/png;" + "name=" + get_attachments + ";base64," + res5;
I am not sure what's wrong in your code and in Zoho integration. I believe it's wrong with the way to attach binary attachment.
Can you just run one of these scripts from your local machine
https://developers.ringcentral.com/guide/messaging/sms/sending-images#javascript
fax api is also working fine ,
don't know whats causing the issue.
from office api console i got error parameter [object object ] , from number does not belong to you
for sandbox environments
This " from number does not belong to you" is a different issue. It is clearly you are trying to send from a phone number which is not owned by the extension being logged in the console.
https://medium.com/ringcentral-developers/ringcentral-sms-from-phone-number-fd34fc382181
this is the response from office api console
I think the API Reference try form is just broken. You should test with your own code as I showed you on the link above.
Yes I know , but same number I'm using for sending sms fax and for other apis , and its working absolutely fine both from console and zoho app .
This number is generated when I created the app on ringcentral .
Its a sandbox phone number
I copied the api from office api reference , probably the format is incorrect also ,{"to":[{"phoneNumber":"514-774-6850"}],"from":{"phoneNumber":"+12897190930"},"text":"Made in André Martin contact","attachments":["type:image/jpeg;name=unnamed.png;base64,
this is the format , that i'm passing and base64 value is also attached with this
called the api from app also , but did not worked.
I'm doing zoho crm integration .
So the api code is in zoho custom function
Can you call from your code and print out the error. Without the error or trace, I can't help.
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