SDITools / adobeanalyticsr

R Client for Adobe Analytics API v2.0
Other
18 stars 9 forks source link

add function get_usage() based on new endpoint #83

Closed benrwoodard closed 3 years ago

benrwoodard commented 3 years ago

Adobe opened a new endpoint that returns the user usage log. I still need to test out if all the variables function as expected and any combinations that can be used.

I also added glue::glue function instead of paste0 in make_timeframe() function.

The usage function called for startDate and endDate to be separate in the api params so I added a function in the utilities function to return a list of the 2 dates with time. Since utilities_function uses the same 2 arguments this was a quick addition and will help maintenance in the future.