Learn R Programming

twitteR (version 0.1.6)

initSession: A function to initiate a Twitter session

Description

This function will initiate a web session for the user with the Twitter servers, providing a handle which is then used throughout the rest of the functions of twitteR.

Usage

initSession(username, password)

Arguments

username
Your Twitter screenname
password
Your Twitter password

Value

  • An object of class CURLHandle

Details

As of now, twitteR still uses the old authentication method, and not OAuth. This function provides a CURLHandle which can then be passed along to any other function within the package in order to achieve proper authentication.

See Also

getCurlHandle, dmGet, getUser

Examples

Run this code
sess <- initSession('myscreen', 'mypass')

Run the code above in your browser using DataLab