Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 

RTwitterAPI

A description on how this package is applied (for Linux and Windows) can be found here:

http://www.joyofdata.de/blog/twitters-rest-api-v1-1-with-r-for-linux-and-windows/

install.packages("devtools")
devtools::install_github("joyofdata/RTwitterAPI")

library(RTwitterAPI)
 
params <- c(
  "oauth_consumer_key"     = "[API Key]",
  "oauth_nonce"            = NA,
  "oauth_signature_method" = "HMAC-SHA1",
  "oauth_timestamp"        = NA,
  "oauth_token"            = "[Access Token]",
  "oauth_version"          = "1.0",
  "consumer_secret"        = "[API Secret]",
  "oauth_token_secret"     = "[Access Token Secret]"
);

# https://dev.twitter.com/docs/api/1.1/get/followers/ids
url   <- "https://api.twitter.com/1.1/friends/ids.json";
query <- c(cursor=-1, screen_name="hrw", count=10);
 
result <- RTwitterAPI::twitter_api_call(url, query, params, print_result=TRUE)

About

Making requests to Twitter's REST API v1.1

Resources

License

Releases

No releases published

Packages

No packages published

Languages