Now, we will use the credentials and variables with the values from the Parent bot and invoke some Twilio REST web services:
- Within the Try block, add the REST Web Services Post method action. Let's add the URI variable we added as the URI property. Next, set Authentication Mode to Basic. For the Username, pick TwilioCredentials, TwilioID from the credential locker that we created previously. For the Password, pick TwilioCredentials, TwilioPassword, as shown in the following screenshot:
- Staying on the REST action properties, let's scroll down and set the content type to application/x-www-form-urlencoded. Now, add the following Custom parameters:
Name | Value |
Body | Hello $RecieverName$ $MessageContent$ |
From | $SenderPhoneNumber$ |
To | $RecieverPhoneNumber$ |
- Finally, let's assign the output to a variable. Click on the wizard near the input box and create a new dictionary variable called...