Hello Experts,
i am trying to send request from business central to Twilio (Send SMS) i want to send SMS(text message to phone number) .i use my Twilio SID and Token no .which i created and get from my Twilio account.. ,i am sending the Post request as in below screenshot 1. screenshot2 is always i get error as 401. although same credentials works fine on Postman and i am able to send SMS without any issue.
1. so it is the correct format and the way i am using to send POST(Json format) request ?
2. if it is wrong one then what is the right way to send request to Twilio
let me know if need more information.
ScreenShot1 1
Screenshot 2.
Thanks in Advance
i tried, but no luck.
Hi,
A quick look, if you're using Basic Auth you'll need to Base64Enconde the User:Token value and pass that for authorization
i tried, but no luck.
Try adding all your headers after you have filled in the httpcontent.
Filling the httpcontent often deletes the headers you added prior to adding the content,
A little perk of the AL httpclient.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156