Click the blue Create Service button and give it a name (I chose find-flowers for mine, but if you are making a tool to search for a different type of service feel free to name it accordingly). Next, head to your Twilio console and go to Twilio Functions. Set up Twilio Function Dependencies and Environment Regardless of which API route you choose, keep the API Key and Client ID handy because you will need them in the next step. You must be a part of the Yelp Developer Beta Program to try this out, which you can easily join or leave by clicking the Join the Developer Beta button in your Manage App settings. I chose to use the Yelp Fusion API for this project since it is stable and has great documentation. There are two different Yelp APIs that can be used to get the data. So for the purposes of this project, it fits the bill. The Yelp API provides accessible data about different businesses and allows you to retrieve this data using a location such as a city name or a zip code. Once you save your app info, it will generate a Client ID and an API Key. You need to fill out some basic information about what you’re building. Next, you will need to create an app on the Yelp Developer’s site. If you already have access to Yelp, you can log and check out their developer documentation. The first thing you need to get started is a Yelp user account. Set up a Yelp App and Get the Fusion API Key Postman, a free tool for making API calls.A Yelp account and Yelp Fusion API Key - Register for a free one here.A Twilio Account - sign up for a free one here and get $10 when you upgrade your account.Lastly, you’ll connect it to a Twilio phone number and test it out. Then, you’ll add in the messaging capabilities and set up a Twilio Studio flow to handle the incoming messages. First, you will set up the Yelp API call using Twilio Functions. Here’s how you could build your own version of this using the Yelp API, Twilio Programmable Messaging, Studio, and Functions. Try it out by texting +1 (815) 551-0M0M, which is +1 (815) 551-0606, to get recommendations based on delivery address zip code. It will also indicate if the shop is currently open □or closed □so you will know if it’s a good time to call. I hooked up the API to a Twilio phone number that you can text to get a list of florists in your delivery area. If you’re like me and need to grab a last minute (but still thoughtful) gift, using the Yelp API is a great way to get localized recommendations fast. Important dates can easily sneak up on you, and before you know it, it’s only a few days away from a special event like Mother’s Day or a birthday.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |