Public/Get-WebexRooms.ps1

<#
.SYNOPSIS
    Get-WebexRooms
.DESCRIPTION
    This will return all rooms with the room_id
.EXAMPLE Get-WebexRooms
    PS :> Get-WebexRooms -token 'bot-token' -rooturl 'https://webexapis.com/v1/'
.PARAMETER token
    Add the api token to authenticate with the api
.PARAMETER rooturl
    Add the root url of the api. https://webexapis.com/v1/
.NOTES
    Name: Add-WebexMessage
    Author: Clemens Richter
    DateCreated: 06.02.2021
.FUNCTIONALITY
    This will return all Rooms with the room_id
#>

function Get-WebexRooms {
    param (
        [parameter(position = 0, mandatory = $true)]
        [ValidateNotNullOrEmpty()] 
        [string]$token, 
        [parameter(position = 1, mandatory = $true)]
        [ValidateNotNullOrEmpty()] 
        [string]$rooturl
    )
    [WebexApiHelperClass] $webexapicaller = [WebexApiHelperClass]::new($token, $rooturl)
    $output = $webexapicaller.GetRooms()
    return $output
}