I’m trying to run an API call to Twilio’s number lookup to properly search and format phone number records on account creation but the API connector doesn’t want to work.
API connector takes the URL (from Twilio docs) modified of course for Bubble: https://lookups.twilio.com/v1/PhoneNumbers/416-123-6997?[AccountSid]:[AuthToken]
curl -XGET “https://lookups.twilio.com/v1/PhoneNumbers/(919)%20410-7522?Type=carrier&Type=caller-name ” -u “{AccountSid}:{AuthToken}”
DOCS: Lookup API
Connector:
However each time i make a call i get an auth error:
Is there a trick that I’m missing to get this to authenticate?
I think you need to base64 encode authid:authtoken for the Authorization parameter.
See this
So…
Go here …
enter … authid:authtoken (so a : between them)…and encode …
[image]
In Bubble …
[image]
APi = https://api.plivo.com/v1/Account/MAZDJHMDUWYJCYYZNIND/Message/ (or whatever you api id is)
Header …
Authorization and the long string you got above…
Content-Type application/json
{
“src”: “+447973253456”,
“dst”: “+447973256543”,
“text”: “Friday yay”
}
You can then insert dynamic data into the body in an action …
[image]
1 Like
system
Closed
February 13, 2018, 4:39pm
3
This topic was automatically closed after 70 days. New replies are no longer allowed.