PTI.Microservices.Library.TwitterFakeFollowers 7.0.0.1

dotnet add package PTI.Microservices.Library.TwitterFakeFollowers --version 7.0.0.1                
NuGet\Install-Package PTI.Microservices.Library.TwitterFakeFollowers -Version 7.0.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PTI.Microservices.Library.TwitterFakeFollowers" Version="7.0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PTI.Microservices.Library.TwitterFakeFollowers --version 7.0.0.1                
#r "nuget: PTI.Microservices.Library.TwitterFakeFollowers, 7.0.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PTI.Microservices.Library.TwitterFakeFollowers as a Cake Addin
#addin nuget:?package=PTI.Microservices.Library.TwitterFakeFollowers&version=7.0.0.1

// Install PTI.Microservices.Library.TwitterFakeFollowers as a Cake Tool
#tool nuget:?package=PTI.Microservices.Library.TwitterFakeFollowers&version=7.0.0.1                

PTI.Microservices.Library.TwitterFakeFollowers

This is part of PTI.Microservices.Library set of packages

The purpose of this package is to facilitate recognizing potential Twitter Fake Followers, while maintaining a consistent usage pattern among the different services in the group

Examples:

Get All Possible Fake Followers For Username

[TestMethod]
public async Task Test_GetAllPossibleFakeFollowersForUsernameAsync()
{
    TwitterService twitterService = new TwitterService(null,
        this.TwitterConfiguration, new Microservices.Library.Interceptors.CustomHttpClient(new Microservices.Library.Interceptors.CustomHttpClientHandler(null)));
    CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
    TwitterPossibleFakeAccountService twitterPossibleFakeAccountService =
        new TwitterPossibleFakeAccountService(null, twitterService);
    TwitterFakeFollowersService twitterFakeFollowersService =
        new TwitterFakeFollowersService(null, twitterService, twitterPossibleFakeAccountService);
    try
    {
        await GetAllPossibleFakeFollowersByUsernameAsync(cancellationTokenSource, twitterFakeFollowersService,
            twitterService);
    }
    catch (Exception ex)
    {
        Assert.IsInstanceOfType(ex, typeof(OperationCanceledException));
    }
}

private async Task GetAllPossibleFakeFollowersByUsernameAsync(CancellationTokenSource cancellationTokenSource,
    TwitterFakeFollowersService twitterFakeFollowersService, TwitterService twitterService)
{
    ulong listId = FAKE_FOLLOWERS_LIST;
    List<string> fakeAccountsUsernames = new List<string>();
    List<PossibleFakeUser> fakeUsersInfo = new List<PossibleFakeUser>();
    await twitterFakeFollowersService.GetAllPossibleFakeFollowersForUsernameAsync(this.TwitterConfiguration.ScreenName,
        async (PossibleFakeUser possibleFakeUser) =>
        {
            try
            {
                fakeAccountsUsernames.Add(possibleFakeUser.User.ScreenNameResponse);
                await twitterService.AddUsersToListAsync(fakeAccountsUsernames, listId);
                fakeUsersInfo.Add(possibleFakeUser);
                var jsonData = System.Text.Json.JsonSerializer.Serialize(fakeUsersInfo);
                await System.IO.File.WriteAllTextAsync(@"E:\Temp\PossibleFakeUsers.json", jsonData);
                if (fakeAccountsUsernames.Count >= 20)
                {
                    fakeAccountsUsernames.Clear();
                }
                //cancellationTokenSource.Cancel();
            }
            catch (Exception ex)
            {

            }
        }, cancellationToken: cancellationTokenSource.Token);
    if (fakeAccountsUsernames.Count >= 0)
    {
        await twitterService.AddUsersToListAsync(fakeAccountsUsernames, 1362737001099907072);
        fakeAccountsUsernames.Clear();
    }
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.0.0.1 373 11/14/2022
7.0.0 357 11/13/2022
2.0.0-preview 297 7/9/2021