Public/Get-WebexRooms.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<#
.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 } |