Intro to REST API calls with Powershell

preview_player
Показать описание
Please follow me on Twitter to get more updates on memes, tech news, devops/developer content!

#powershell #API

Link to Project FIles :

REST API call with No Auth :

REST API call with Auth & Personal Access Token :

Important Time Stamps
00:00 - Intro
0:33 - Quick explanation of URL endpoints
1:17 - Setting up URL
2:36 - Creating query string
3:19 - Result of API call with GET method
3:43 - Some examples of how to digest the data retrieved
5:19 - Creating Azure Devops Authorization token
6:44 - Updating query string for API call with Personal Access Token
9:19 - Create the token pairing
10:42 - Creating the header variable
11:15 - Quick breakdown of what to expect from running API call with PAT
12:02 - Showing the usefulness of "-depth" parameter

Link to HTTP Request Methods :

Cat Facts API :

Azure Devops API Documentation :
Рекомендации по теме
Комментарии
Автор

Link to Project FIles :

REST API call with No Auth :

REST API call with Auth & Personal Access Token :

Important Time Stamps
0:33 - Quick explanation of URL endpoints
1:17 - Setting up URL
2:36 - Creating query string
3:19 - Result of API call with GET method
3:43 - Some examples of how to digest the data retrieved
5:19 - Creating Azure Devops Authorization token
6:44 - Updating query string for API call with Personal Access Token
9:19 - Create the token pairing
10:42 - Creating the header variable
11:15 - Quick breakdown of what to expect from running API call with PAT
12:02 - Showing the usefulness of "-depth" parameter

Link to HTTP Request Methods :

Cat Facts API :

Azure Devops API Documentation :

CodeDoge
Автор

Hmm, I will try this...I'm more focused on security aspect using powershell(windows 10 pro) and the linux instance/image you can download through the windows playstore. I use tools like Putty. Random rant, but I'm just sharing all this in case you also one want to go over how windows pro users can also do some linux stuff and/or use cases of Putty, and/or powershell means to try encryption, hashing, etc. No expectations, no obligations, but just a thought.

JaemonEva
Автор

The code shown at 3:28 didn't work for me. It said "The variable 'response' is assigned but never used." I had to add Write-Output $response. How is this possible? Thank you for the video, btw...

PetrChlada
Автор

Great video!!

I used this video to understand concepts of REST API with PowerShell and then asked ChatGPT the proper PowerShell-related questions to help guide me perform ETL on a cloud-based database.

kyleluong
Автор

Thanks a lot! Its a really great intro!

mdsajjadurrahman
Автор

Love powershell. Thank you needed this tutorial

zerosum
Автор

Such a great explanation. Thank you! Are there any videos for POST method and all?

divyalathamadapuri
Автор

Can you pls add a session to show - once Data fetched from REST API in Json format thru PS, how to save the the filtered data in excel or csv ! Im using Postman to access Endpoints and then get the ready to use PS cmdlt from Postman snippets inside PS ISE. But need to understand the logic to fetch the required amount of Data from huge JSON body and then save filtered data in excel or csv for reporting purpose

whoaMI-mihb
Автор

I am getting error - the remote server returned an error :401 unauthorised

aronichakraborty