Functions/ServerWebServices/Get-PASSafeShareLogo.ps1
# .ExternalHelp psPAS-help.xml function Get-PASSafeShareLogo { [CmdletBinding()] param( [parameter( Mandatory = $true )] [ValidateSet('Square', 'Watermark')] [String]$ImageType ) BEGIN { #!Depreciated above 13.2 Assert-VersionRequirement -MaximumVersion 13.2 }#begin PROCESS { #Create URL for request $URI = "$Script:BaseURI/WebServices/PIMServices.svc/Logo?type=$ImageType" #send request to web service $result = Invoke-PASRestMethod -Uri $URI -Method GET -WebSession $Script:WebSession If ($null -ne $result) { $result } }#process END { }#end } |