-
Notifications
You must be signed in to change notification settings - Fork 220
Users
linvi edited this page Mar 13, 2016
·
4 revisions
Tweetinvi allows developers to interact with Users and Authenticated Users. AuthenticatedUsers objects differ from User as they contains private credentials that can be used to perform actions on the User account.
// From a user id
var user = User.GetUserFromId(<user_id>);
// From a user screen name
var user = User.GetUserFromScreenName("<user_screen_name>");
Some methods in the library will require a user identifier as a parameter. To create a user identifier you will either need a user_id
or a user_screen_name
.
var userIdentifier = new UserIdentifier(<user_id>);
var userIdentifier = new UserIdentifier("<user_screen_name>");