Twitterizer 2 Documentation
Examples

This topic contains the following sections.

Requirements
All of the following examples assume that your application has already obtained an access token. If not, please visit How Do I?
Basic Usage

In every method, you have the opportunity to evaluate the success of every request and, if there is a failure, determine how best to proceed.

CopyC#
TwitterResponse<TwitterUser> userResponse = TwitterUser.Show(tokens, "twitterapi");
if (userResponse.Result == RequestResult.Success)
{
    DisplayUserDetails(userResponse.ResponseObject);
}
else
{
    LogErrorDetails(userResponse.RequestUrl, userResponse.ErrorMessage, userResponse.Content);
    DisplayErrorMessageToUser(userResponse.ErrorMessage);
}
CopyVB.NET
Dim userResponse As TwitterResponse(Of TwitterUser) = TwitterUser.Show(tokens, "twitterapi")
If (userResponse.Result = RequestResult.Success) Then
    DisplayUserDetails(userResponse.ResponseObject)
Else
    LogErrorDetails(userResponse.RequestUrl, userResponse.ErrorMessage, userResponse.Content)
    DisplayErrorMessageToUser(userResponse.ErrorMessage)
End If
Getting a User's details.
CopyC#
TwitterResponse<TwitterUser> userResponse = TwitterUser.Show("twitterapi");