public/helper/Get-TwitterFriendships_NoRetweetsIds.ps1

function Get-TwitterFriendships_NoRetweetsIds {
<#
.SYNOPSIS
    Follow, search, and get users

.DESCRIPTION
    GET friendships/no_retweets/ids
    
    Returns a collection of user_ids that the currently authenticated user does not want to receive retweets from.
    
    Use POST friendships / update to set the "no retweets" status for a given user account on behalf of the current user.

.PARAMETER stringify_ids
    Some programming environments will not consume Twitter IDs due to their size. Provide this option to have IDs returned as strings instead. Read more about Twitter IDs. This parameter is important to use in Javascript environments.

.NOTES
    This helper function was generated by the information provided here:
    https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-no_retweets-ids

#>

    [CmdletBinding()]
    Param(
        [string]$stringify_ids
    )
    Begin {

        [hashtable]$Parameters = $PSBoundParameters
                   $CmdletBindingParameters | ForEach-Object { $Parameters.Remove($_) }

        [string]$Method      = 'GET'
        [string]$Resource    = '/friendships/no_retweets/ids'
        [string]$ResourceUrl = 'https://api.twitter.com/1.1/friendships/no_retweets/ids.json'

    }
    Process {

        # Find & Replace any ResourceUrl parameters.
        $UrlParameters = [regex]::Matches($ResourceUrl, '(?<!\w):\w+')
        ForEach ($UrlParameter in $UrlParameters) {
            $UrlParameterValue = $Parameters["$($UrlParameter.Value.TrimStart(":"))"]
            $ResourceUrl = $ResourceUrl -Replace $UrlParameter.Value, $UrlParameterValue
        }

        $OAuthSettings = Get-TwitterOAuthSettings -Resource $Resource
        Invoke-TwitterAPI -Method $Method -ResourceUrl $ResourceUrl -Parameters $Parameters -OAuthSettings $OAuthSettings

    }
    End {

    }
}