Skip to content
linvi edited this page Mar 13, 2016 · 4 revisions

Overview

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.

Let's code

Get a User

// From a user id
var user = User.GetUserFromId(<user_id>);

// From a user screen name
var user = User.GetUserFromScreenName("<user_screen_name>");

User Identifier

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>");

Go further

Clone this wiki locally