Difference between revisions of "NoAuth usecase 3"
Pavel.lobko (talk | contribs) |
|||
| Line 5: | Line 5: | ||
: [[adding SSL certificate]] | : [[adding SSL certificate]] | ||
| − | When the preparations are completed, all we have to do - is just | + | When the preparations are completed, all we have to do - is just compose our POST request following the [https://developer.nexmo.com/api/sms instructions]. |
<pre> | <pre> | ||
Revision as of 14:46, 12 April 2020
Two things we have to take care before we start messaging:
When the preparations are completed, all we have to do - is just compose our POST request following the instructions.
I2REST COMMAND(*POST)
URL('https://rest.nexmo.com/sms/json')
BODY(*N '{"api_key":"40a45a89", "api_secret":"EN8AHxD6fOd1jvWD", "from":"Vonage SMS API", "to":"375297784290", "text":"Hello from i2Rest"}' 'application/json')
OUTPUT(*BOTH)
DCMCLIENT(MYCLIENT)
RECVLOG('/home/btpl/recvnex.log')
SENTLOG('/home/btpl/sentnex.log')
AUTHMETHOD(*NONE)
Was it your phone ring? Check it.