public/helper/Send-TwitterSavedSearches_Destroy_Id.ps1
function Send-TwitterSavedSearches_Destroy_Id { <# .SYNOPSIS Manage account settings and profile .DESCRIPTION POST saved_searches/destroy/:id Destroys a saved search for the authenticating user. The authenticating user must be the owner of saved search id being destroyed. .PARAMETER id The ID of the saved search. .NOTES This helper function was generated by the information provided here: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id #> [CmdletBinding()] Param( [string]$id ) Begin { [string]$Method = 'POST' [string]$Resource = '/saved_searches/destroy/:id' [string]$ResourceUrl = 'https://api.twitter.com/1.1/saved_searches/destroy/:id.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 { } } |