public/helper/Send-TwitterLists_Update.ps1
function Send-TwitterLists_Update { <# .SYNOPSIS Create and manage lists .DESCRIPTION POST lists/update Updates the specified list. The authenticated user must own the list to be able to update it. .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 mode Whether your list is public or private. Values can be public or private . If no mode is specified the list will be public. .PARAMETER description The description to give the list. .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 . .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/post-lists-update #> [CmdletBinding()] Param( [string]$list_id, [string]$slug, [string]$mode, [string]$description, [string]$owner_screen_name, [string]$owner_id ) Begin { [hashtable]$Parameters = $PSBoundParameters $CmdletBindingParameters | ForEach-Object { $Parameters.Remove($_) } [string]$Method = 'POST' [string]$Resource = '/lists/update' [string]$ResourceUrl = 'https://api.twitter.com/1.1/lists/update.json' } Process { If (-Not $OAuthSettings) { $OAuthSettings = Get-TwitterOAuthSettings -Resource $Resource } Invoke-TwitterAPI -Method $Method -ResourceUrl $ResourceUrl -Resource $Resource -Parameters $Parameters -OAuthSettings $OAuthSettings } End { } } |