Public/Get-WebexMessages.ps1
<#
.SYNOPSIS Get-WebexMessages .DESCRIPTION This will retrun all Webex message in room .EXAMPLE Get-WebexMessages PS :> Get-WebexMessages -token 'bottoken' -rooturl 'https://webexapis.com/v1/' -room_id 'IdOfTheRoom' .PARAMETER token Add the api token to authenticate with the api .PARAMETER rooturl Add the root url of the api. https://webexapis.com/v1/ .PARAMETER room_id Add the roomId of the room. .NOTES Name: Get-WebexMessages Author: Clemens Richter DateCreated: 06.02.2021 .FUNCTIONALITY This will retrun all Webex message in room #> function Get-WebexMessages { param ( [parameter(position = 0, mandatory = $true)] [ValidateNotNullOrEmpty()] [string]$token, [parameter(position = 1, mandatory = $true)] [ValidateNotNullOrEmpty()] [string]$rooturl, [parameter(position = 2, mandatory = $true)] [ValidateNotNullOrEmpty()] [string]$room_id ) [WebexApiHelperClass] $webexapicaller = [WebexApiHelperClass]::new($token, $rooturl) $output = $webexapicaller.GetMessages([string]$room_id) return $output } |