SnipeitPS/SnipeitPS/Public/Categories.psm1
Stephen Maunder 47b174dfa0 Pester checks
2017-11-18 21:06:20 +00:00

16 lines
305 B
PowerShell

function Get-Category()
{
Param(
[parameter(mandatory=$true)]
[string]$url,
[parameter(mandatory=$true)]
[string]$apiKey
)
$result = Invoke-Method -URi "$url/api/v1/categories" `
-Method GET `
-Token $apiKey
$result
}