Closed RichardMN closed 3 years ago
This is working better now but to transfer this download into our class (which I could do) we would need to add jsonlite
as a dependency for the package, and I'd like advice and comment on how much to abstract this in case there are other REST apis which a similar approach (very barebones) could/should be used for.
Really like the idea of a standlone interface for interacting with rest apis though definitely needs thinking about on whether it can be made generalisable enough.
jsonlite
seems like a reasonable dependency to add as obviously very useful for many data sources.
This provides standalone code to test downloading Germany data from RKI using their RESTful API, paging through the data in tranches as provided (25,000 rows each), only asking for the five fields we use, and trying to trim the data after each page is downloaded.
Possible model to address #408