Skip to content

Commit

Permalink
Updating task configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinDMack committed Jan 29, 2018
1 parent 1265ce9 commit 5633a8f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Empty file added Tasks/HttpRequest/ReadME.md
Empty file.
16 changes: 16 additions & 0 deletions Tasks/HttpRequest/task/httpRequest.ps1
@@ -0,0 +1,16 @@
[CmdletBinding(DefaultParameterSetName = 'None')]
param
(
[String] [Parameter(Mandatory = $true)] $url,
[String] [Parameter(Mandatory = $false)] $body,
[String] [Parameter(Mandatory = $true)] $method,
[String] [Parameter(Mandatory = $false)] $headers
)

if ($headers -eq "")
{
Invoke-WebRequest -Uri $url -Method $method -Body $body
}
else {
Invoke-WebRequest -Uri $url -Method $method -Body $body -Headers $headers
}
Binary file added Tasks/HttpRequest/task/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.

0 comments on commit 5633a8f

Please sign in to comment.