Python-powered chat apps with Twilio and SendGrid Transcripts
Chapter: Messaging and workflows with Twilio Studio
Lecture: Concept: calling an api in studio basic

Login or purchase this course to watch this video and the rest of the course contents.
0:00 we can go a really long way working just in twilio studio using the liquid template
0:07 language and so on. But eventually there will be external data that we need to
0:12 get things that we need to verify and integrations with our own applications that we would
0:16 like to make. The best way to do that is to call an external API through twilio studio to remember when the person says they want a cake and
0:26 they go along a little ways eventually, we need to say Well, here, the types of cakes we offer, the different frostings, the flavors,
0:33 the toppings and so on. Sure, we could hard code that into our studio flow. Then it would be hard coded. What if we wanted to run a special?
0:42 Do you really want to go and have to edit this and change it? No. You want to just have it automatically pick up whatever data you have available
0:49 and offer that up as part of the flow. So what we can do is we can call an external API.
0:54 In this case, we're calling this Cloud City cake to get us the flavor of frosting and so
1:01 on. So what we do is we drop make a Http request widget onto our flow, give it a proper name. In this case, we're just going to do a get against that.
1:11 URL so as a get and URL and then formula encoded content, even though we're not actually passing additional information.
1:18 If we were, it would basically be query strings, and that's it. That's all we gotta do to integrate.
1:24 Working with external data and external API's into our studio flow.

Talk Python's Mastodon Michael Kennedy's Mastodon