Functions/Private/Get-CoinbaseProProfile.ps1
function Get-CoinbaseProProfile { Param( [parameter(Mandatory=$true)]$ProfileID, [Parameter(Mandatory=$true)] $APIKey, [Parameter(Mandatory=$true)] $APISecret, [Parameter(Mandatory=$true)] $APIPhrase, [parameter()] [switch] $SandboxAPI ) $api = Get-BlankAPI -SandboxAPI:$SandboxAPI $api.key = "$APIKey" $api.secret = "$APISecret" $api.passphrase = "$APIPhrase" $api.method = 'GET' $api.url = "/profiles/$ProfileID" $response = Invoke-CoinbaseProRequest $api Write-Output $response } |