recursive.codes


The Personal Blog of Todd Sharp

Ring Central - Sending an MMS With Node.JS

Posted By: Todd Sharp on 2/21/2020 6:11 GMT
Tagged: APIs

I previously showed you how to create and send an SMS using Ring Centraland Node.JS, but in this post I want to show you how to send an MMS. It's pretty similar to the previous example, but there are a few differences that I wanted to point out.

Note: There is a combined limit of 1.5M bytes for all attachments and a limit of 10 attachments for any request.

The full process is well documented on their developer portal. The first step is to pull in the modules and create an instance of the SDK object and platform:

Next, login to the platform (using your own credentials):

Now in the login callback, create the MMS body, construct a new FormData object that includes the file that you want to post to the MMS recipient and post the form!

And that's all it takes to send an MMS with Java and Ring Central!



Note: Comments are currently closed on this blog. Disqus is simply too bloated to justify its use with the low volume of comments on this blog. Please visit my contact page if you have something to say!