Welcome to Dev Odyssey Postman Pointers - Postman best practices that improve your workflow. In this video, we're covering how to send requests in scripts using the sendRequest function in your Pre-Request Script, or Tests sections of your Postman Request. Refer to the links below for the sendRequest example in the Dev Odyssey's Public Workspace:
https://www.postman.com/odevodyssey/w...
00:00 Introduction
02:07 First Example sendRequest
02:32 Second example sendRequest
03:00 sendRequest Options
04:08 Third Example sendRequest
05:00 PostmanSDK classes sendRequest
05:37 sendRequest Options with Classes
09:20 Reviewing the Console
11:04 Outro
Postman Learning Center sendRequest
https://learning.postman.com/docs/wri...
Postman SDK
http://www.postmanlabs.com/postman-co...
The sendRequest function in Postman lets you send any http(s) request before your main Postman Request or after your Postman Request.
This function is most commonly useful for obtaining authentication tokens, such as OAuth Bearer Tokens, but has many other applications. Anytime you need to get or send data using http(s), the sendRequest function will be your best companion.
You can also codify your scripts using the Postman SDK, and in this video I go over how to do that with the sendRequest function. This is a better way to write code, because it's more legible, improves compiler performance, and explains the full set of options and features explicitly.
Learn more on how to use Postman from my other videos below.
Postman Pointers - How To Create a Dynamic Request Body in Postman
• How to Create a Dynamic Request Body ...
Watch - How to Upload, Download, and Preview Files (PDFs) with Postman
• How to Upload, Download, and Preview ...
Watch - Learning GraphQL With Postman
• Learning GraphQL With Postman
Watch - Web Scraping with Cheerio.js and Postman Visualizer
• Web Scraping with Postman
Watch - How to Filter Data with Postman Visualizer
• How to Filter Data with Postman
Watch - How to Visualize Data in Postman here!
• How to Visualize Data in Postman
Watch the first series, Introduction to Postman here!
• Introduction to Postman Tutorial
Watch the second series, Advanced Postman here!
• Advanced Postman
Download:
https://www.postman.com/downloads/
Questions about this episode or Postman? Ask in the comments!
Kahakai by Scandinavianz & Lahar
/ scandinavianz
/ musicbylahar
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: http://bit.ly/_-kahakai
Music promoted by Audio Library • Kahakai – Scandinavianz & Lucjo (No C...