Android Question Twilio Call Button

Robert Henryk

New Member
Hello everyone
I want to send a call to my number etc. 123456778899 using Twilio when I click a button.
How to get started building this feature.
 

JohnC

Expert
Licensed User
Longtime User
Here is some very old code I had (don't include brackets [] in anything):

B4X:
Sub MakeCall
 
    Dim EventJob As HttpJob
    Dim U As String

    U = "https://api.twilio.com/2010-04-01/Accounts/[TwilioAccountID]"
 
    EventJob.Initialize("MCall",  Me)
 
    EventJob.Username = "[TwilioAccountID]"
    EventJob.Password = "[TwilioPassword]"
 
    EventJob.PostString(U, "From=[+TwilioNumberwithCountryCodePrefix]&To=[+NumberToCallwithCountryCodePrefix]&Url=[aURLonYourServerthatTwiliowillPostCallStatusto]")

End Sub

If you need additional help, please PM me.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…