Skip to content

TomerAdmon/Invoke-RestMethod-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Invoke-RestMethod-2.0

Rest client for powershell 2.0 and above

Example:

####GET

Invoke-RestMethod20 -Method GET -Uri "http://httpbin.org/ip"

####POST

$body = @{Data = "some post data"} | ConvertTo-Json20
Invoke-RestMethod20 -Method POST -Uri "http://httpbin.org/post" -Body $body

####PUT

$body = @{User = "username"; Password = "password"} | ConvertTo-Json20  
Invoke-RestMethod20 -Method PUT -Uri "http://httpbin.org/put" -Body $body -asJson

About

Rest client for powershell 2.0 and above

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published