Skip to content

Commit

Permalink
Merge pull request #36 from cbtodd/patch-1
Browse files Browse the repository at this point in the history
Get-DuoIntegrations v2 API
  • Loading branch information
JohnDuprey authored May 8, 2024
2 parents bd4c313 + 51c9e54 commit 2e84e49
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ function Get-DuoIntegrations {
)

if ($IntegrationKey) {
$Path = '/admin/v1/integrations/{0}' -f $IntegrationKey
$Path = '/admin/v2/integrations/{0}' -f $IntegrationKey
} else {
$Path = '/admin/v1/integrations'
$Path = '/admin/v2/integrations'
}

$DuoRequest = @{
Method = 'GET'
Path = $Path
SignatureVersion = 5
}

$Response = Invoke-DuoRequest @DuoRequest
Expand Down

0 comments on commit 2e84e49

Please sign in to comment.