Get the function out of the RMD
file and start to put some structure to it.
Tear it apart.
u = "https://gist.githubusercontent.com/Btibert3/c20c59a2b925562aa050/raw/f5a395239b78fc649432cfb6fcb7c22d8877225c/queryAPI.r"
devtools::source_url(u)
- A significantly more modular way of querying the data, especially when paging through results.
- Query more data
- input validation and error handling
- play with
tidyjson
- message if status != 200