For example, if you run the following as a GET post to the REST location:
It will send a message to the phone number you designate. However keep in mind, if you are testing, you will need to add the number as part of your test bed.
Once you have the above working, you can then construct a JS version of the string that will send a GET post to the Nexmo API service. If you want to get fancy, we can even use Volt as an authentication server! This will allow state to be maintained on a device which is inherently stateless.