public async static Task<UserListDetailedCursored> GetFriendsList(this ITwitterSession session, string screenName = "", int userId = 0, int count = 20, long cursor = -1)
{
var parameters = new TwitterParametersCollection
{
{"include_user_entities", true.ToString()},
};
parameters.Create(count: count, cursor: cursor, screen_name: screenName, user_id: userId, skip_status:true);
if (parameters.EnsureEitherOr("screen_name", "user_id").IsFalse())
{
return session.MapParameterError<UserListDetailedCursored>(
"Either screen_name or user_id required");
}
return await session.GetAsync(TwitterApi.Resolve("/1.1/friends/list.json"), parameters)
.ContinueWith(t => t.MapToSingle<UserListDetailedCursored>());
}