Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajmcoqui/webAPIsR
Example scripts for "Using web APIs in R" presentation, rstudio::conf 2017
https://github.com/ajmcoqui/webAPIsR
Last synced: 18 days ago
JSON representation
Example scripts for "Using web APIs in R" presentation, rstudio::conf 2017
- Host: GitHub
- URL: https://github.com/ajmcoqui/webAPIsR
- Owner: ajmcoqui
- License: gpl-3.0
- Created: 2017-01-12T18:27:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T01:09:25.000Z (over 7 years ago)
- Last Synced: 2024-08-01T00:45:04.294Z (3 months ago)
- Language: HTML
- Size: 1.04 MB
- Stars: 27
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webAPIsR
These are example scripts for my "Using web APIs in R" presentation from rstudio::conf 2017.## Presentation
#### WebAPIsInR_Expanded.Rmd
Slides from my rstudio::conf presentation.## Scripts
#### omdb.R
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.#### swapi.R
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.#### twitter.R
Get data from https://api.twitter.com using httr's convenience functions for OAuth 1.0 authentication.#### github.R
Get data from https://api.github.com using httr's convenience functions for OAuth 2.0 authentication.## More resources
#### On APIs and HTTP:
https://zapier.com/learn/apis/chapter-1-introduction-to-apis/https://www.ntu.edu.sg/home/ehchua/programming/webprogramming/HTTP_Basics.html
#### On the packages:
`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