I need to have the exact request URL that Twilio makes when sending an SMS. Is there a way to print/log it? When I use the Message.getUri method, it gives me something that ends with .json which I think is the response from Twilio after making the request. From what I've read, it should look something like "https://api.twilio.com/2010-04-01/Accounts/<Account_SID>/Messages".
I'm using the Java API:
com.twilio.rest.api.v2010.account.Message
.creator(new PhoneNumber(toNumber), // to
new PhoneNumber(twilioFromNumber), // from
textMessage)
.create();