updateStatus {twitteR}R Documentation

Functions to manipulate Twitter status

Description

These functions can be used to set or delete a user's Twitter status

Usage

tweet(text, session = getCurlHandle(), ...)
updateStatus(text, session = getCurlHandle(), ...)
deleteStatus(status, session = getCurlHandle(), ...)

Arguments

text The text to use for a new status
status An object of class status
session An object from initSession
... Optional arguments to be passed to getURL

Details

The tweet and updateStatus functions are the same.

To delete a status message, pass in an object of class status, such as from the return value of updateStatus.

Value

The updateStatus function will return an object of class status.
The deleteStatus returns TRUE on success and an error if failure occurs.

Author(s)

Jeff Gentry

See Also

initSession

Examples

   ## Not run: 
      sess <- initSession('myUser', 'myPass')
      ns <- updateStatus('this is my new status message', sess)
      ## ooops, we want to remove it!
      deleteStatus(ns)
   
## End(Not run)

[Package twitteR version 0.1.5 Index]