Twitter Getting information about a user

Getting information about a user

The users endpoint the GetUser method can be used to lookup information about specific users. You can request information about a given user either based on their ID or their screen name. This can be done as:

// Make the call to the API
TwitterUserResponse response = service.Users.GetUser(319219802);

// Write out some information about the user
Console.WriteLine(response.Body.Id);
Console.WriteLine(response.Body.ScreenName);
Console.WriteLine(response.Body.Name);
Console.WriteLine(response.Body.FollowersCount);
Console.WriteLine(response.Body.FriendsCount);
Console.WriteLine(response.Body.StatusesCount);

or as:

// Make the call to the API
TwitterUserResponse response = service.Users.GetUser("abjerner");

// Write out some information about the user
Console.WriteLine(response.Body.Id);
Console.WriteLine(response.Body.ScreenName);
Console.WriteLine(response.Body.Name);
Console.WriteLine(response.Body.FollowersCount);
Console.WriteLine(response.Body.FriendsCount);
Console.WriteLine(response.Body.StatusesCount);