Exemplo n.º 1
0
        /// <summary>
        /// Verify and get information about the user (requires an access token).
        /// </summary>
        public TwitterUser VerifyCredentials()
        {
            // Make a call to the API
            HttpStatusCode status;
            string         response = Raw.VerifyCredentials(out status);

            // Check for errors
            if (status != HttpStatusCode.OK)
            {
                throw TwitterException.Parse(response);
            }

            // Parse the response
            return(TwitterUser.ParseJson(response));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Alias of <var>Show</var>.
 /// </summary>
 public TwitterUser GetUser(string screenName, bool includeEntities)
 {
     return(TwitterUser.ParseJson(Raw.GetUser(screenName, includeEntities)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Alias of <var>Show</var>.
 /// </summary>
 public TwitterUser GetUser(long userId, bool includeEntities)
 {
     return(TwitterUser.ParseJson(Raw.GetUser(userId, includeEntities)));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Alias of <var>Show</var>.
 /// </summary>
 public TwitterUser GetUser(string screenName)
 {
     return(TwitterUser.ParseJson(Raw.GetUser(screenName, false)));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Alias of <var>Show</var>.
 /// </summary>
 public TwitterUser GetUser(long userId)
 {
     return(TwitterUser.ParseJson(Raw.GetUser(userId, false)));
 }