ceff-tech / ffc_api_client

An R client for the online Functional Flows Calculator API
https://ceff-tech.github.io/ffc_api_client
9 stars 3 forks source link

Convert the FFC API code to be an R6 object #6

Open nickrsan opened 4 years ago

nickrsan commented 4 years ago

Under the hood, can have the same functions operate with the class under the hood, but can also run the R6 object itself to make multiple requests.

nickrsan commented 4 years ago

We're currently using an environment to store the token, which is fine, but maybe just making it an R6 object makes more sense? Not sure if it really needs rearchitecting or not though

nickrsan commented 4 years ago

We can also make the convenience functions return an object for those that don't want to instantiate it directly - then they can use methods of the object to export data as CSVs, save plots, etc.