plugins/CleverReach/Public/CleverReach/Get-Tags.ps1



function Get-Tags {

    [CmdletBinding()]
    param (
        #[Parameter(Mandatory=$false)][Hashtable] $InputHashtable
        #[Parameter(Mandatory=$false)][String] $GroupId
    )
    
    begin {
    
    }
    process {

        $tags = @( Invoke-CR -Object "tags" -Query ([PSCustomObject]@{"group_id"=0;"order_by"="tag"}) -Method GET -Verbose -Paging ) # use a copy so the reference is not changed because it will used a second time

        $tags

    }

    end {

    }

}