public/helper/Get-TwitterDirectMessages_WelcomeMessagesRulesShow.ps1
function Get-TwitterDirectMessages_WelcomeMessagesRulesShow { <# .SYNOPSIS Welcome Messages .DESCRIPTION GET direct_messages/welcome_messages/rules/show Returns a Welcome Message Rule by the given id. .PARAMETER id (required) .NOTES This helper function was generated by the information provided here: https://developer.twitter.com/en/docs/direct-messages/welcome-messages/api-reference/get-welcome-message-rule #> [CmdletBinding()] Param( [string]$id ) Begin { [hashtable]$Parameters = $PSBoundParameters $CmdletBindingParameters | ForEach-Object { $Parameters.Remove($_) } [string]$Method = 'GET' [string]$Resource = '/direct_messages/welcome_messages/rules/show' [string]$ResourceUrl = 'https://api.twitter.com/1.1/direct_messages/welcome_messages/rules/show.json' } Process { If (-Not $OAuthSettings) { $OAuthSettings = Get-TwitterOAuthSettings -Resource $Resource } Invoke-TwitterAPI -Method $Method -ResourceUrl $ResourceUrl -Resource $Resource -Parameters $Parameters -OAuthSettings $OAuthSettings } End { } } |