Learn R Programming

twitteR (version 0.1.6)

publicTimeline: Functions to view Twitter timelines

Description

These functions will allow you to retrieve various timelines within the Twitter universe

Usage

publicTimeline(session=getCurlHandle(), ...)
userTimeline(user, session=getCurlHandle(), ...)
friendsTimeline(session=getCurlHandle(), ...)
mentions(session=getCurlHandle(), ...)

Arguments

user
The Twitter user to detail, can be character or an user object.
session
A session object from initSession
...
Optional arguments to be passed to getURL

Value

Details

The userTimeline function will only properly operate if the authenticated user is allowed to see the requested user.

The mentions function will return any statuses which mention the authenticated user.

The friendsTImeline function will return the current timeline of the friends of the authenticated user.

See Also

getUser, initSession, status

Examples

Run this code
sess <- initSession('myUser', 'myPasss')
        pt <- publicTimeline()
        pt
        mentions(sess)
        tw <- getUser('twitter', sess)
        userTimeline(tw, sess)

Run the code above in your browser using DataLab