Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline.
| C# | Visual Basic |
public static TwitterResponse<TwitterUser> Show( OAuthTokens tokens, string username, OptionalProperties options )
Public Shared Function Show ( _ tokens As OAuthTokens, _ username As String, _ options As OptionalProperties _ ) As TwitterResponse(Of TwitterUser)
- tokens (OAuthTokens)
- The tokens.
- username (String)
- The user name.
- options (OptionalProperties)
- The options.
A new instance of the TwitterUser class.
This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show
// Declare the username variable string userName = "twit_er_izer"; // Declare the options object for configuration settings OptionalProperties options = new OptionalProperties(); // Declare our user variable and fetch the user's details TwitterResponse<TwitterUser> user = TwitterUser.Show(tokens, userName, options);
'-- Declare the user's id variable Dim UserName As String = "twit_er_izer" '-- Declare the options object for configuration settings Dim options As new OptionalProperties() '-- Declare our user variable and fetch the user's details Dim user As TwitterResponse(Of TwitterUser) = TwitterUser.Show(tokens, UserName, options)
| Exception | Condition |
|---|---|
| ArgumentNullException | Indicates that a required argument was not supplied. |
| ArgumentException | Indicates that an argument supplied was not valid. |
| [!:Twitterizer.CommandValidationException<T>] | Indicates that a command failed pre-execution validation. |