Public/Get-WebexMessages.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 34 35 36 37 38 |
<#
.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 } |