This way, you can go back to a previous configuration and reuse it, without the need to code everything again. Something that is worth mentioning too is that Postman stores all of the calls that you’ve ever made in their History tab. And that’s it! Now you know how Postman works. The payload contains all the information from Mailjet to check what happened to your message. We can see that the status is 200 OK (so, everything is fine with our API call) and the time that it took to execute the call and the size of the call. We will take a simple API call for sending an email with API 3.1: Let’s try an easy request with Mailjet’s API and see how it works. Headers - You can set headers, such as content type JSON, depending on the needs of the organization.īody - This is where one can customize details in a request commonly used in POST request. It may be in the form of a username and password, bearer token, etc. Params - This is where you will write parameters needed for a request such as key values.Īuthorization - In order to access APIs, proper authorization is needed. Request URL - Also known as an endpoint, here you’ll identify the link with which they API will communicate. HTTP Request - Clicking this will display a dropdown list of different requests such as GET, POST, COPY, DELETE, etc. By default, "Untitled Request" will be displayed for requests without titles. Request tab - This displays the title of the request you are working on. This makes it easy to track the actions that you have done. History - Past requests that you have sent will be displayed in History. Invite - Collaborate on a workspace by inviting team members. My Workspace - You can create a new workspace individually or as a team. There are options such as import from file, folder, link or paste the raw text. Import - This is used to import a collection or environment. New - This is where you will create a new request, collection or environment. Let’s have a look at a few of the most important buttons: Now you’re ready to use Postman! The Postman application will open and this is what you’ll see: Once you’ve installed Postman, you will have to create an account, select the workspace tools you need and click Save My Preferences. If you still haven’t downloaded Postman, you can get it here for Mac, Windows, or Linux. But let’s have a closer look at what Postman offers and how it works. It’s really easy to use it, you will just need to log in to your own account to access files anytime, anywhere. It allows users to set up all the API expects and checks the response of your request. Postman offers a development environment that you can use to build, publish, document, design, monitor, test, and debug APIs. It provides features for designing, testing, mocking, and debugging API requests to make API development easier for everyone. Postman is a widely used API tool that helps 7 million developers and more than 300,000 companies access millions of APIs every month. Why? Because it’s going to make your life a whole lot easier. Having an intuitive tool with easy to use libraries of API calls can be your salvation in a situation like this. When you are setting up your transactional emails flow, a lot of checks and test API calls are needed to see if everything is working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |