Learn R Programming

smappR (version 0.5)

searchUsers: Returns list of users related to a search query

Description

searchUsers Provides a simple, relevance-based search interface to public user accounts on Twitter. Try querying by topical interest, full name, company name, location, or other criteria. Exact match searches are not supported. Only the first 1,000 matches are available.

Usage

searchUsers(q = NULL, count = 100, oauth_folder, verbose = TRUE)

Arguments

q
The search query to run against people search
count
Number of potential user results to retrieve
oauth_folder
folder where OAuth tokens are stored. It can also be the name of a file that contains the token, or a csv file with the format: consumer_key, consumer_secret,access_token,access_token_secret.
verbose
shows additional ouput about token usage in console

Examples

Run this code
## Not run: 
# ## Search users using query "pablo"
#  userdata <- searchUsers(q="pablo", count=200, oauth_folder="~/Dropbox/credentials")
# ## End(Not run)

Run the code above in your browser using DataLab