public/helper/Get-TwitterLists_Members_Show.ps1
function Get-TwitterLists_Members_Show { <# .SYNOPSIS Create and manage lists .DESCRIPTION GET lists/members/show Check if the specified user is a member of the specified list. .PARAMETER list_id The numerical id of the list. .PARAMETER slug You can identify a list by its slug instead of its numerical id. If you decide to do so, note that you'll also have to specify the list owner using the owner_id or owner_screen_name parameters. .PARAMETER user_id The ID of the user for whom to return results. Helpful for disambiguating when a valid user ID is also a valid screen name. .PARAMETER screen_name The screen name of the user for whom to return results. Helpful for disambiguating when a valid screen name is also a user ID. .PARAMETER owner_screen_name The screen name of the user who owns the list being requested by a slug. .PARAMETER owner_id The user ID of the user who owns the list being requested by a slug. .PARAMETER include_entities When set to either true, t or 1, each tweet will include a node called "entities". This node offers a variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags. While entities are opt-in on timelines at present, they will be made a default component of output in the future. See Tweet Entities for more details. .PARAMETER skip_status When set to either true, t or 1 statuses will not be included in the returned user objects. .NOTES This helper function was generated by the information provided here: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members-show #> [CmdletBinding()] Param( [string]$list_id, [string]$slug, [string]$user_id, [string]$screen_name, [string]$owner_screen_name, [string]$owner_id, [string]$include_entities, [string]$skip_status ) Begin { [string]$Method = 'GET' [string]$Resource = '/lists/members/show' [string]$ResourceUrl = 'https://api.twitter.com/1.1/lists/members/show.json' [hashtable]$Parameters = $PSBoundParameters $CmdletBindingParameters | ForEach-Object { $Parameters.Remove($_) } } Process { If (-Not $OAuthSettings) { $OAuthSettings = Get-TwitterOAuthSettings -Resource $Resource } Invoke-TwitterAPI -Method $Method -ResourceUrl $ResourceUrl -Resource $Resource -Parameters $Parameters -OAuthSettings $OAuthSettings } End { } } |