Python-powered chat apps with Twilio and SendGrid Transcripts
Chapter: Using our database with the SQLAlchemy ORM
Lecture: Calling the order API in Studio flow
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Where are we with our WhatsApp integration Into our order.
0:02
API Well, we almost had it.
0:04
You can see your order's been placed.
0:06
No, no, not really.
0:07
Not really. Just kidding. So let's go back to studio and have a look
0:10
and see what's going on. We've made it really far through this and honestly,
0:14
were almost entirely done with working with studio at all this.
0:18
This may be the very last thing we do.
0:20
We work our way down to the bottom here.
0:23
You can see we are calling the OrderAPI if we expand this out
0:27
even more and we look, we're actually passing over all the information that's expected.
0:31
So we're calling the API.
0:33
But what happens when we get it back?
0:35
Well, here we just say Great.
0:37
The order has been placed, but not really.
0:41
So what we wanna do is check.
0:42
Make sure this worked and then give them some kind of actual information.
0:47
Your order has been placed. We'll see you soon.
0:50
It will be under such and such with that the order ID is we call with
0:58
this api. We were returning back some information and the way we get that information
1:03
here. Move over is we're going to go to the widget order_placed.parsed
1:16
and then on there. We have an order_id,
1:19
But I believe we called it like this.
1:22
How great your order's been placed the order id is,
1:25
whatever it is we had saved, publish changes.