/// <summary> /// Get user information /// </summary> /// <param name="provider">credential provider</param> /// <param name="userId">target user id</param> public static TwitterUser GetUser(this CredentialProvider provider, long userId) { return(provider.GetUser("users/show.json", CredentialProvider.RequestMethod.GET, userId, null)); }
/// <summary> /// Get user by screen name /// </summary> /// <param name="provider">credential provider</param> /// <param name="screenName">target user screen name</param> public static TwitterUser GetUserByScreenName(this CredentialProvider provider, string screenName) { return(provider.GetUser("users/show.json", CredentialProvider.RequestMethod.GET, null, screenName)); }