recursive.codes


The Personal Blog of Todd Sharp

Ring Central - Sending SMS Messages With Java

Posted By: Todd Sharp on 2/21/2020 12:57 GMT
Tagged: APIs, Java

Yesterday I blogged about Ring Central and their APIs for sending SMS, making voice calls and much more. In that post I showed an example of how easy it is to send an SMS with Node.JS. In this post, I'll show you a similar example, but this time using Java. It's just as easy to do with Java, but will look much more familiar if you're a Java user which I know many of my readers are.

The full process is well documented on their developer portal. After you've created your application in the portal, grab the necessary credentials and plug them in below. You'll first need to add the dependency. If you're using Gradle, that looks like this:

Next, in your class, set some variables:

Create an instance of the client:

Then send the message:

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

Image by Greyerbaby from Pixabay



Related Posts

Securely Connecting to Autonomous DB Without a Wallet (Using TLS)

Securely Connecting to Autonomous DB Without a Wallet (Using TLS)

I talk to a lot of developers in my job as a Developer Advocate. Sometimes they've been using the products in the Oracle Cloud for a long time, and sometimes...

Enterprise Messaging via Oracle Advanced Queuing with Autonomous DB & Micronaut

Enterprise Messaging via Oracle Advanced Queuing with Autonomous DB & Micronaut

I’ve written about messaging many, many times on this blog. And for good reason, too. It’s a popular subject that developers can’t seem to get enough of...

Cloud Deck: Automating and Retrieving Info From Your Cloud Tenancy With a Simple Microcontroller

Cloud Deck: Automating and Retrieving Info From Your Cloud Tenancy With a Simple Microcontroller

Last month, I discovered a really cool project called Stream Cheap that is an inexpensive, DIY version of the wildly popular Stream Deck...

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!