Twilio Integration with Oracle APEX 22.1
Send Messages using Twilio API
- Get Twilio Account SID, AUTH Token and Phone Number
- Get Twilio Create Message API End Point
- Invoke Twilio Create Message API with Postman
- Invoke Twilio API to Sent Messages (Using PL/SQL)
I) Get Twilio Account SID, AUTH Token and Phone Number
II) Get Twilio Create Message API End Point
III) Invoke Twilio Create Message API with Postman
IV) Invoke Twilio API to Send Messages (Using PL/SQL)
Step 2: Create a Form like below and call the procedure "send_messages_twilo" on button "Send" call.
Query:
API Success Response:
{
"sid":"SM02e4532468ca4c5c99a37b866c5c3701",
"date_created":"Tue, 17 May 2022 12:38:49 +0000",
"date_updated":"Tue, 17 May 2022 12:38:49 +0000",
"date_sent":null,
"account_sid":"AC2b7b7fffbc349c2f59c82f5bdaa0fd2b",
"to":"+971582036853",
"from":"+17755227844",
"messaging_service_sid":null,
"body":"Sent from your Twilio trial account - Thanks for showing interest to join Oracle APEX Community",
"status":"queued",
"num_segments":"1",
"num_media":"0",
"direction":"outbound-api",
"api_version":"2010-04-01",
"price":null,
"price_unit":"USD",
"error_code":null,
"error_message":null,
"uri":"/2010-04-01/Accounts/AC2b7b7fffbc349c2f59c82f5bdaa0fd2b/Messages/SM02e4532468ca4c5c99a37b866c5c3701.json",
"subresource_uris":{
"media":"/2010-04-01/Accounts/AC2b7b7fffbc349c2f59c82f5bdaa0fd2b/Messages/SM02e4532468ca4c5c99a37b866c5c3701/Media.json"
}
}
{
"sid":"SM02e4532468ca4c5c99a37b866c5c3701",
"date_created":"Tue, 17 May 2022 12:38:49 +0000",
"date_updated":"Tue, 17 May 2022 12:38:49 +0000",
"date_sent":null,
"account_sid":"AC2b7b7fffbc349c2f59c82f5bdaa0fd2b",
"to":"+971582036853",
"from":"+17755227844",
"messaging_service_sid":null,
"body":"Sent from your Twilio trial account - Thanks for showing interest to join Oracle APEX Community",
"status":"queued",
"num_segments":"1",
"num_media":"0",
"direction":"outbound-api",
"api_version":"2010-04-01",
"price":null,
"price_unit":"USD",
"error_code":null,
"error_message":null,
"uri":"/2010-04-01/Accounts/AC2b7b7fffbc349c2f59c82f5bdaa0fd2b/Messages/SM02e4532468ca4c5c99a37b866c5c3701.json",
"subresource_uris":{
"media":"/2010-04-01/Accounts/AC2b7b7fffbc349c2f59c82f5bdaa0fd2b/Messages/SM02e4532468ca4c5c99a37b866c5c3701/Media.json"
}
}
Comments
Post a Comment