Public/Get-GCOAuthClient.ps1
|
<# .SYNOPSIS Retrieves a single OAuth client by ID. .DESCRIPTION Returns the details of a specific OAuth client from Genesys Cloud. Uses the GET /api/v2/oauth/clients/{clientId} endpoint. .PARAMETER ClientId The unique identifier of the OAuth client to retrieve. .EXAMPLE Get-GCOAuthClient -ClientId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: GET /api/v2/oauth/clients/{clientId} #> function Get-GCOAuthClient { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ClientId ) $endpoint = "oauth/clients/$ClientId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |