These are example scripts for my "Using web APIs in R" presentation from rstudio::conf 2017.
Slides from my rstudio::conf presentation.
Get data from http://www.omdbapi.com/, an open-source movie database. Explore the GET response; parse it with jsonlite or xml2, depending on the response format.
Get data from https://swapi.co/, an open-source Star Wars database. Explore the GET response, parse with jsonlite, create a function to parse automatically, write a loop to process a paged response.
Get data from https://api.twitter.com using httr's convenience functions for OAuth 1.0 authentication.
Get data from https://api.github.com using httr's convenience functions for OAuth 2.0 authentication.
https://zapier.com/learn/apis/chapter-1-introduction-to-apis/
https://www.ntu.edu.sg/home/ehchua/programming/webprogramming/HTTP_Basics.html
help(package=httr)
https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html
http://github.com/hadley/httr/tree/master/demo
https://cran.r-project.org/web/packages/jsonlite/vignettes/json-apis.html
https://cran.r-project.org/web/packages/httr/vignettes/api-packages.html