Public/Account/Get-ZoomAccount.ps1
<# .SYNOPSIS Get the details of the account. .DESCRIPTION Get the details of the account. You can only call this API if you have the approved partners permission to use a Master API. .PARAMETER AccountId The Account ID. .LINK https://marketplace.zoom.us/docs/api-reference/zoom-api/accounts/accountsettings .EXAMPLE Return the details of the Zoom Account. Get-ZoomAccount #> function Get-ZoomAccount { [CmdletBinding()] param ( [Parameter( Mandatory = $False, Position = 0, ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $True )] [Alias('id', 'account_id')] [string]$AccountId ) process { $request = [System.UriBuilder]"https://api.$ZoomURI/v2/accounts/$id" $response = Invoke-ZoomRestMethod -Uri $request.Uri -Method GET Write-Output $response } } |