Public/Get-SimwoodSMSCDR.ps1
function Get-SimwoodSMSCDR { [CmdletBinding()] Param( [datetime]$Date ) $DateUri = "" if ($Date) { $DateStr = $Date.ToString("yyyy-MM-dd") $DateUri = "?date=$DateStr" } $Hash = Invoke-SimwoodRequest -Method POST -Resource "accounts/$($script:SimwoodAccountID)/reports/sms/cdr/day$DateUri" -ResourceFilter $ResourceFilter $Result = Invoke-SimwoodHashRequest -Hash $Hash.hash Return $Result } |