| getUser {twitteR} | R Documentation |
These functions allow you interact with information about a Twitter user - retrieving their base information, list of friends, list of followers, and an up to date timeline.
getUser(user, session = getCurlHandle()) userFriends(user, session = getCurlHandle()) userFollowers(user, session = getCurlHandle())
user |
The Twitter user to detail, can be character or
an user object. |
session |
A session object from initSession |
These functions will only return fully formed objects if the authenticated user is allowed to see the requested user. If that person has a private account and has not allowed you to see them, you will not be able to extract that information.
The getUser function returns an object of class
user.
The functions userFriends and userFollowers return lists
of class user objects.
Jeff Gentry
## Not run:
sess <- initSession('myuser', 'mypass')
tuser <- getUser('twitter', sess)
tfriends <- userFriends(tuser, sess)
tfollowers <- userFollowers(tuser, sess)
ttimeline <- userTimeline(tuser, sess)
## End(Not run)