BoxKite.Twitter.UsersExtensions.SearchForUsers C# (CSharp) Метод

SearchForUsers() публичный статический Метод

Provides a simple, relevance-based search interface to public user accounts on Twitter. Only the first 1,000 matching results are available.
ref: https://dev.twitter.com/docs/api/1.1/get/users/search
public static SearchForUsers ( this session, string searchQuery, int count = 20, int page = 1 ) : Task>
session this
searchQuery string The search query to run against people search.
count int The number of potential user results to retrieve per page. This value has a maximum of 20.
page int Specifies the page of results to retrieve.
Результат Task>
        public async static Task<TwitterResponseCollection<User>> SearchForUsers(this IUserSession session, string searchQuery, int count = 20, int page = 1)
        {
            var parameters = new TwitterParametersCollection
                             {
                                 {"q", searchQuery},
                                 {"page", page.ToString()},
                             };
            parameters.Create(count:count,include_entities:true);

            return await session.GetAsync(TwitterApi.Resolve("/1.1/users/search.json"), parameters).ContinueWith(c => c.MapToMany<User>());
        }