BoxKite.Twitter.FriendsFollowersExtensions.GetFollowersIDs C# (CSharp) Метод

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

Returns a cursored collection of user IDs following a particular user(otherwise known as their "followers")
ref: https://dev.twitter.com/docs/api/1.1/get/followers/ids
public static GetFollowersIDs ( this session, string screenName = "", int userId, int count = 500, long cursor = -1 ) : Task
session this
screenName string screen_name or user_id must be provided
userId int screen_name or user_id must be provided
count int how many to return default 500
cursor long default is first page (-1) otherwise provide starting point
Результат Task
        public static async Task<FriendsFollowersIDsCursored> GetFollowersIDs(this ITwitterSession session, string screenName = "", int userId = 0, int count = 500, long cursor = -1)
        {
            var parameters = new TwitterParametersCollection();
            parameters.Create(count: count, cursor: cursor, screen_name: screenName, user_id: userId);

            if (parameters.EnsureEitherOr("screen_name", "user_id").IsFalse())
            {
                return session.MapParameterError<FriendsFollowersIDsCursored>(
                        "Either screen_name or user_id required");
            }

            return await session.GetAsync(TwitterApi.Resolve("/1.1/followers/ids.json"), parameters)
                             .ContinueWith(t => t.MapToSingle<FriendsFollowersIDsCursored>());
        }