Note that it will need to be in the E.164 format for phone numbers (+1234567890). In addition, add a non-Twilio phone number such as your own to send your test text messages to as MY_PHONE_NUMBER. All of these values can be found from your Twilio Console. Populate the values for your Account SID, Auth Token, and Twilio phone number (don’t worry if you don’t already have a number, you’ll actually be able to use Postman shortly to get a phone number using only the first two variables!). There you will now see a newly forked Twilio collection with your label. Once the fork is created you will be directed to your workspace Environments tab. Provide a fork label and ensure that the Workspace targeted is your own. Click the Fork button and fill out the Fork environment form that appears.On the left-hand side of the Postman web UI click the Environments tab, then select the Twilio Environment.To make the process of setting up your Environment as straightforward as possible, there is a Twilio Environment which you can fork to provide the variables for your forked collection. Similar to collections, you may also create a fork of an Environment. Setting Up Your Postman EnvironmentĪn Environment in Postman is simply a group of related variables that you can reference when making calls, instead of needing to manually repeat their values throughout your calls. Once the fork is created, you’ll be taken to your workspaces, where you will now see your newly minted fork of Twilio Messaging / SMS! If you expand the collection, you’ll see a helpful collection of SMS GET and POST requests to explore. You must provide a name and username to finish creating the fork. Postman will prompt you to make your profile public.Provide a unique text label for your fork, ensure that the target workspace is yours, then click Fork Collection. Click the F ork button for the collection as shown below.From the Postman web client, click on the Twilio Messaging / SMS collection in the collections list.Doing so enables you to pull in Twilio’s changes to the collection over time, and even opens up the option to make changes and submit them as a pull request. The recommended way to work with a collection is by creating a fork. This page is the Postman web client with the Twilio Messaging/SMS Collection loaded. Once there, you will see a screen similar to the one below. Instead of referencing the Twilio Docs and creating your own collection, you can visit the Twilio Postman Collection page where you will find collections maintained by the Twilio team.įrom the Collections tab, click the Twilio Messaging / SMS link to be taken to the Messaging Collection. This allows for easy organization of requests, and even better, Postman allows us to export collections to share with one another. Getting started with Twilio’s Postman CollectionĪ Postman Collection is a way to group related request templates together in a folder structure. POSTMAN BLUE FREEPostman is a free and easy-to-use development tool for making API calls with a variety of helpful features. You can skip to Getting started with Twilio's Postman Collection if you've already completed these steps and know what Postman is. Prerequisitesīefore you start, be sure to complete the following prerequisites. POSTMAN BLUE HOW TOIn this article, we’ll learn how to buy a phone number and send an SMS text message using Twilio's Postman Collection and a Postman Environment. Luckily, visual API development tools such as Postman make the learning journey much easier!Īs part of Twilio’s rollout of its OpenAPI specification, we now provide a Postman collection which you can use to visually explore and interact with Twilio’s API without writing code. Learning how to use a 3rd party API can be a difficult task. If you've identified a mismatch between Twilio's API behavior and the specification, please open an issue. The spec is expected to be accurate, but is currently in active development and is unsupported. The Twilio OpenAPI Spec is currently in BETA.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |