Get Playback History
get_history(url = NULL, apikey = NULL, grouping = 0, user = NULL, user_id = NULL, rating_key = NULL, parent_rating_key = NULL, grandparent_rating_key = NULL, start_date = NULL, section_id = NULL, media_type = NULL, transcode_decision = NULL, order_column = NULL, order_dir = "desc", start = 0, length = 25, search = NULL)
| url | Server URL. |
|---|---|
| apikey | API key. |
| grouping | 0 (default) or 1 |
| user | "Jon Snow" |
| user_id | 133788 |
| rating_key | 4348 |
| parent_rating_key | 544 |
| grandparent_rating_key | 351 |
| start_date | "YYYY-MM-DD" |
| section_id | 2 |
| media_type | "movie", "episode", "track" |
| transcode_decision | "direct play", "copy", "transcode", |
| order_column | "date", "friendly_name", "ip_address", "platform", "player", "full_title", "started", "paused_counter", "stopped", "duration" |
| order_dir | "desc" (default) or "asc" |
| start | Row to start from, 0 (default) |
| length | Number of items to return, 25 |
| search | A string to search for, "Thrones" |
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_history
A list with totals and the history as tbl
# NOT RUN { get_history(length = 10) # }