question

Constantine Kanarakis avatar image
Constantine Kanarakis asked ·

error while sending mms using sandbox credentials in office api console

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

apisending sms
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered ·

How your app will eventually be used in the production? Using Postman only? Don't you write your app in some programming language? If yes, why don't you call the API from your app?

1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Constantine Kanarakis avatar image
Constantine Kanarakis answered ·

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

1 comment
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Can you call from your code and print out the error. Without the error or trace, I can't help.

1 Like 1 ·
Constantine Kanarakis avatar image
Constantine Kanarakis answered ·
  • {"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

11 comments
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

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.

0 Likes 0 ·

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;


0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ Constantine Kanarakis ·

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

1 Like 1 ·
Show more comments
Embbnux Ji avatar image
Embbnux Ji answered ·

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

1 comment
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

MMS is getting sent from widget successfully , but not from sms api.

Thanks for your help .

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.