Helps you to generate OAuth1.0a authentication header value for Twitter API.
dotnet add package Twitter.OAuth --version 1.0.4
.NET Standard 2.1
OAuthHeaderGenerator oAuthHeaderGenerator = new OAuthHeaderGenerator(_consumerKey, _consumerSecret, _accessToken, _accessTokenSecret);
string url = $"https://api.twitter.com/1.1/friendships/destroy.json?screen_name={inactiveUser.Name}";
string oAuth = oAuthHeaderGenerator.GenerateOAuthHeader("POST", url);
_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("OAuth", oAuth);