March 6, 2014

slideshare package released!!!

Today, I will inform my new package, “slideshare” package. With this package, you can get the information of slides uploaded at “www.slideshare.net”.

You can install from github.

devtools::install_github("dichika/slideshare")

After the registration as developers, you can get information from “www.slideshare.net”.

# At first, you have to get APIkey and sharedsecret at the URL below.
# http://www.slideshare.net/developers/applyforapi

# key <- 'Your APIkey' 
# secret <- 'Your sharedsecret'

library(slideshare)
test <- Slideshare$new(apikey = key, sharedsecret = secret)
res <- test$getSlideshow("http://www.slideshare.net/hadley/r-packages")
## Loading required package: XML
## Loading required package: digest
## Loading required package: RCurl
## Loading required package: bitops
res$Username
## [1] "hadley"
res$NumViews
## [1] "6158"

Sorry, I prepare only one function, getSlideshow.

Other function(e.g. get_slideshows_by_user) will be added soon.

Next time, I will try to visualize slideshare views with this package.

No comments:

Post a Comment