Title: | Get Data Out of 'Tautulli' (Formerly 'PlexPy') |
---|---|
Description: | 'Tautulli' (<http://tautulli.com>) is a monitoring application for 'Plex' Media Servers (<https://www.plex.tv>) which collects a lot of data about media items and server usage such as play counts. This package interacts with the 'Tautulli' API of any specified server to get said data into R. The 'Tautulli' API documentation is available at <https://github.com/Tautulli/Tautulli/blob/master/API.md>. |
Authors: | Lukas Burk [aut, cre] |
Maintainer: | Lukas Burk <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.3.1 |
Built: | 2025-01-24 05:26:02 UTC |
Source: | https://github.com/jemus42/tauturri |
Make an API GET-request
api_request(url = NULL, apikey = NULL, cmd = "get_servers_info", ...)
api_request(url = NULL, apikey = NULL, cmd = "get_servers_info", ...)
url |
Server URL. |
apikey |
API key. |
cmd |
API command,
see the API docs. Defaults to
printing server information via the |
... |
Optional (named) parameters. |
The API result, usually a list
.
## Not run: api_request("http://example.com/plexpy", "asdf", "get_servers_info") ## End(Not run)
## Not run: api_request("http://example.com/plexpy", "asdf", "get_servers_info") ## End(Not run)
Arnold
arnold(url = NULL, apikey = NULL)
arnold(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A character
of length 1
.
https://github.com/Tautulli/Tautulli/blob/master/API.md#arnold
## Not run: arnold() ## End(Not run)
## Not run: arnold() ## End(Not run)
Get Current Server Activity
get_activity(url = NULL, apikey = NULL)
get_activity(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A list
with bandwidth + stream info and a session tbl
.
## Not run: get_activity() ## End(Not run)
## Not run: get_activity() ## End(Not run)
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 )
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" |
A list
with totals and the history as tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_history
## Not run: get_history(length = 10) ## End(Not run)
## Not run: get_history(length = 10) ## End(Not run)
The data displayed on the Tautulli home.
get_home_stats( url = NULL, apikey = NULL, grouping = 0, time_range = 30, stats_type = 0, stats_count = 5 )
get_home_stats( url = NULL, apikey = NULL, grouping = 0, time_range = 30, stats_type = 0, stats_count = 5 )
url |
Server URL. |
apikey |
API key. |
grouping |
0 or 1 |
time_range |
The time range to calculate statistics, default is |
stats_type |
|
stats_count |
The number of top items to list, default is |
A list
of length 10, with tbl
s for each category of stats.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_home_stats
## Not run: get_home_stats() ## End(Not run)
## Not run: get_home_stats() ## End(Not run)
Get All the Libraries' Data
get_libraries(url = NULL, apikey = NULL)
get_libraries(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A tbl
with columns section_id
and section_name
## Not run: get_libraries() ## End(Not run)
## Not run: get_libraries() ## End(Not run)
Get All the Libraries-Table
get_libraries_table( url = NULL, apikey = NULL, order_column = NULL, order_dir = "desc", start = 0, length = 25, search = NULL )
get_libraries_table( url = NULL, apikey = NULL, order_column = NULL, order_dir = "desc", start = 0, length = 25, search = NULL )
url |
Server URL. |
apikey |
API key. |
order_column |
Optional, "added_at", "title", "container", "bitrate", "video_codec", "video_resolution", "video_framerate", "audio_codec", "audio_channels", "file_size", "last_played", "play_count" |
order_dir |
"desc" (default) or "asc" |
start |
Row to start from, default 0 |
length |
Number of items to return, default 25 |
search |
A string to search for |
A tbl
with columns section_id
and section_name
## Not run: get_libraries_table() ## End(Not run)
## Not run: get_libraries_table() ## End(Not run)
Get A Single Library Information
get_library(url = NULL, apikey = NULL, section_id)
get_library(url = NULL, apikey = NULL, section_id)
url |
Server URL. |
apikey |
API key. |
section_id |
The library's |
A tbl
with columns section_id
and section_name
## Not run: get_library(section_id = 1) ## End(Not run)
## Not run: get_library(section_id = 1) ## End(Not run)
Get A Library's Media Info
get_library_media_info( url = NULL, apikey = NULL, section_id = NULL, rating_key = NULL, section_type = "movie", order_column = "added_at", order_dir = "desc", start = 0, length = 25, search = NULL )
get_library_media_info( url = NULL, apikey = NULL, section_id = NULL, rating_key = NULL, section_type = "movie", order_column = "added_at", order_dir = "desc", start = 0, length = 25, search = NULL )
url |
Server URL. |
apikey |
API key. |
section_id |
The id of the Plex library section, OR |
rating_key |
The grandparent or parent rating key |
section_type |
Optional, "movie" (default), "show", "artist", "photo" |
order_column |
Optional, "added_at", "title", "container", "bitrate", "video_codec", "video_resolution", "video_framerate", "audio_codec", "audio_channels", "file_size", "last_played", "play_count" |
order_dir |
"desc" (default) or "asc" |
start |
Row to start from, default 0 |
length |
Number of items to return, default 25 |
search |
A string to search for |
A list
with a totals
list and an items
tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_library_media_info
## Not run: get_library_media_info(section_id = 2) ## End(Not run)
## Not run: get_library_media_info(section_id = 2) ## End(Not run)
Get Library Sections and Names
get_library_names(url = NULL, apikey = NULL)
get_library_names(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A tbl
with columns section_id
and section_name
## Not run: get_library_names() ## End(Not run)
## Not run: get_library_names() ## End(Not run)
Get Library User Stats
get_library_user_stats(url = NULL, apikey = NULL, section_id)
get_library_user_stats(url = NULL, apikey = NULL, section_id)
url |
Server URL. |
apikey |
API key. |
section_id |
The library's |
A tbl
with 4 columns and one row per user.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_library_user_stats
## Not run: get_library_user_stats(section_id = 1) ## End(Not run)
## Not run: get_library_user_stats(section_id = 1) ## End(Not run)
Get Library Watch Time Stats
get_library_watch_time_stats(url = NULL, apikey = NULL, section_id = NULL)
get_library_watch_time_stats(url = NULL, apikey = NULL, section_id = NULL)
url |
Server URL. |
apikey |
API key. |
section_id |
The id of the Plex library section, OR |
A tbl
of length 3
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_library_watch_time_stats
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_library_names
## Not run: get_library_watch_time_stats(section_id = 2) ## End(Not run)
## Not run: get_library_watch_time_stats(section_id = 2) ## End(Not run)
Get Plays by Date
get_plays_by_date( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_by_date( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns date
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_date
Other Playback History:
get_plays_by_dayofweek()
,
get_plays_by_hourofday()
,
get_plays_by_source_resolution()
,
get_plays_by_stream_resolution()
,
get_plays_by_stream_type()
,
get_plays_per_month()
## Not run: get_plays_by_date(y_axis = "duration") ## End(Not run)
## Not run: get_plays_by_date(y_axis = "duration") ## End(Not run)
Get Plays by Day of Week
get_plays_by_dayofweek( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_by_dayofweek( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns hour
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_dayofweek
Other Playback History:
get_plays_by_date()
,
get_plays_by_hourofday()
,
get_plays_by_source_resolution()
,
get_plays_by_stream_resolution()
,
get_plays_by_stream_type()
,
get_plays_per_month()
## Not run: get_plays_by_dayofweek() ## End(Not run)
## Not run: get_plays_by_dayofweek() ## End(Not run)
Get Plays by Hour of Day
get_plays_by_hourofday( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_by_hourofday( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns hour
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_hourofday
Other Playback History:
get_plays_by_date()
,
get_plays_by_dayofweek()
,
get_plays_by_source_resolution()
,
get_plays_by_stream_resolution()
,
get_plays_by_stream_type()
,
get_plays_per_month()
## Not run: get_plays_by_hourofday() ## End(Not run)
## Not run: get_plays_by_hourofday() ## End(Not run)
Get Plays by Source Resolution
get_plays_by_source_resolution( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_by_source_resolution( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns hour
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_source_resolution
Other Playback History:
get_plays_by_date()
,
get_plays_by_dayofweek()
,
get_plays_by_hourofday()
,
get_plays_by_stream_resolution()
,
get_plays_by_stream_type()
,
get_plays_per_month()
## Not run: get_plays_by_source_resolution() ## End(Not run)
## Not run: get_plays_by_source_resolution() ## End(Not run)
Get Plays by Stream Resolution
get_plays_by_stream_resolution( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_by_stream_resolution( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns hour
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_source_resolution
Other Playback History:
get_plays_by_date()
,
get_plays_by_dayofweek()
,
get_plays_by_hourofday()
,
get_plays_by_source_resolution()
,
get_plays_by_stream_type()
,
get_plays_per_month()
## Not run: get_plays_by_stream_resolution() ## End(Not run)
## Not run: get_plays_by_stream_resolution() ## End(Not run)
Get Plays by Stream Type
get_plays_by_stream_type( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_by_stream_type( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns date
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_stream_type
Other Playback History:
get_plays_by_date()
,
get_plays_by_dayofweek()
,
get_plays_by_hourofday()
,
get_plays_by_source_resolution()
,
get_plays_by_stream_resolution()
,
get_plays_per_month()
## Not run: get_plays_by_stream_type() ## End(Not run)
## Not run: get_plays_by_stream_type() ## End(Not run)
Get Plays by Top 10 Platforms
get_plays_by_top_10_platforms( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_by_top_10_platforms( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns hour
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_top_10_platforms
## Not run: get_plays_by_top_10_platforms() ## End(Not run)
## Not run: get_plays_by_top_10_platforms() ## End(Not run)
Get Plays by Top 10 Users
get_plays_by_top_10_users( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_by_top_10_users( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns user
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_top_10_users
## Not run: get_plays_by_top_10_users() ## End(Not run)
## Not run: get_plays_by_top_10_users() ## End(Not run)
Get Plays by Month
get_plays_per_month( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_plays_per_month( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns month
, Movies
, TV
, Music
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_plays_by_month
Other Playback History:
get_plays_by_date()
,
get_plays_by_dayofweek()
,
get_plays_by_hourofday()
,
get_plays_by_source_resolution()
,
get_plays_by_stream_resolution()
,
get_plays_by_stream_type()
## Not run: get_plays_per_month() ## End(Not run)
## Not run: get_plays_per_month() ## End(Not run)
Check for PMS Updates
get_pms_update(url = NULL, apikey = NULL)
get_pms_update(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A list
containing update information
## Not run: get_pms_update() ## End(Not run)
## Not run: get_pms_update() ## End(Not run)
Get Recently Added Media Items
get_recently_added( url = NULL, apikey = NULL, count = 10, section_id = NULL, start = NULL )
get_recently_added( url = NULL, apikey = NULL, count = 10, section_id = NULL, start = NULL )
url |
Server URL. |
apikey |
API key. |
count |
The number of items to return, default is |
section_id |
Optional. The id of the Plex library section, e.g. '1“ |
start |
Optional. The item number to start at, e.g. |
A tbl
with count
rows and 18 columns.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_recently_added
## Not run: get_recently_added(section_id = 1) ## End(Not run)
## Not run: get_recently_added(section_id = 1) ## End(Not run)
Get Server Friendly Name
get_server_friendly_name(url = NULL, apikey = NULL)
get_server_friendly_name(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A tbl
with 8 columns minimum with one row per server.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_server_friendly_name
Other Server Information:
get_server_identity()
,
get_server_id()
,
get_server_list()
,
get_servers_info()
## Not run: get_server_friendly_name() ## End(Not run)
## Not run: get_server_friendly_name() ## End(Not run)
Get Server ID
get_server_id( url = NULL, apikey = NULL, hostname, port = 32400, remote = 0, ssl = 0 )
get_server_id( url = NULL, apikey = NULL, hostname, port = 32400, remote = 0, ssl = 0 )
url |
Server URL. |
apikey |
API key. |
hostname |
THe hostname |
port |
The server port, default is |
ssl , remote
|
Optional, 0 for no, 1 for yes |
A tbl
with 8 columns minimum with one row per server.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_server_id
Other Server Information:
get_server_friendly_name()
,
get_server_identity()
,
get_server_list()
,
get_servers_info()
## Not run: get_server_id() ## End(Not run)
## Not run: get_server_id() ## End(Not run)
Get Server Identity
get_server_identity(url = NULL, apikey = NULL)
get_server_identity(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A tbl
with 2 columns.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_servers_identity
Other Server Information:
get_server_friendly_name()
,
get_server_id()
,
get_server_list()
,
get_servers_info()
## Not run: get_server_identity() ## End(Not run)
## Not run: get_server_identity() ## End(Not run)
Get Server List
get_server_list(url = NULL, apikey = NULL)
get_server_list(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A tbl
with 8 columns minimum with one row per server.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_server_list
Other Server Information:
get_server_friendly_name()
,
get_server_identity()
,
get_server_id()
,
get_servers_info()
## Not run: get_server_list() ## End(Not run)
## Not run: get_server_list() ## End(Not run)
Get Server Information
get_servers_info(url = NULL, apikey = NULL)
get_servers_info(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A tbl
with 5 columns minimum.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_servers_info
Other Server Information:
get_server_friendly_name()
,
get_server_identity()
,
get_server_id()
,
get_server_list()
## Not run: get_servers_info() ## End(Not run)
## Not run: get_servers_info() ## End(Not run)
Get Stream Type by Top 10 Platforms
get_stream_type_by_top_10_platforms( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_stream_type_by_top_10_platforms( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns platform
, Direct_Play
, Direct_Stream
, Transcode
.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_stream_type_by_top_10_platforms
## Not run: get_stream_type_by_top_10_platforms() ## End(Not run)
## Not run: get_stream_type_by_top_10_platforms() ## End(Not run)
Get Stream Type by Top 10 Users
get_stream_type_by_top_10_users( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
get_stream_type_by_top_10_users( url = NULL, apikey = NULL, time_range = 30, y_axis = "plays", user_id = NULL )
url |
Server URL. |
apikey |
API key. |
time_range |
The number of days of data to return, default is |
y_axis |
|
user_id |
The user id to filter the data |
A tbl
with columns user
, Direct_Play
, Direct_Stream
, Transcode
.
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_stream_type_by_top_10_users
## Not run: get_stream_type_by_top_10_users() ## End(Not run)
## Not run: get_stream_type_by_top_10_users() ## End(Not run)
Get User IPs
get_user_ips( url = NULL, apikey = NULL, user_id, order_column = NULL, order_dir = "desc", start = 0, length = 50, search = NULL )
get_user_ips( url = NULL, apikey = NULL, user_id, order_column = NULL, order_dir = "desc", start = 0, length = 50, search = NULL )
url |
Server URL. |
apikey |
API key. |
user_id |
The |
order_column |
"user_thumb", "friendly_name", "last_seen", "ip_address", "platform", "player", "last_played", "plays", "duration" |
order_dir |
"desc" (default) or "asc" |
start |
Row to start from, default is 0 |
length |
Number of items to return, default is 50. |
search |
A string to search for |
A tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_user_ips
## Not run: get_user_ips(user_id = 192023) ## End(Not run)
## Not run: get_user_ips(user_id = 192023) ## End(Not run)
Get User Logins
get_user_logins( url = NULL, apikey = NULL, user_id, order_column = NULL, order_dir = "desc", start = 0, length = 50, search = NULL )
get_user_logins( url = NULL, apikey = NULL, user_id, order_column = NULL, order_dir = "desc", start = 0, length = 50, search = NULL )
url |
Server URL. |
apikey |
API key. |
user_id |
The |
order_column |
"user_thumb", "friendly_name", "last_seen", "ip_address", "platform", "player", "last_played", "plays", "duration" |
order_dir |
"desc" (default) or "asc" |
start |
Row to start from, default is 0 |
length |
Number of items to return, default is 50. |
search |
A string to search for |
A tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_user_logins
## Not run: get_user_logins(user_id = 192023) ## End(Not run)
## Not run: get_user_logins(user_id = 192023) ## End(Not run)
Get User Names and IDs
get_user_names(url = NULL, apikey = NULL, add_pseudonym = FALSE)
get_user_names(url = NULL, apikey = NULL, add_pseudonym = FALSE)
url |
Server URL. |
apikey |
API key. |
add_pseudonym |
Set to |
A tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_user_names
## Not run: get_user_names() ## End(Not run)
## Not run: get_user_names() ## End(Not run)
Get a Single User's Player Stats
get_user_player_stats(url = NULL, apikey = NULL, user_id)
get_user_player_stats(url = NULL, apikey = NULL, user_id)
url |
Server URL. |
apikey |
API key. |
user_id |
The numeric |
A tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_user_player_stats
## Not run: get_user_player_stats(user_id = 1352909) ## End(Not run)
## Not run: get_user_player_stats(user_id = 1352909) ## End(Not run)
Get a Single User's Player Stats
get_user_watch_time_stats(url = NULL, apikey = NULL, user_id)
get_user_watch_time_stats(url = NULL, apikey = NULL, user_id)
url |
Server URL. |
apikey |
API key. |
user_id |
The numeric |
A tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_user_watch_time_stats
## Not run: get_user_watch_time_stats(user_id = 1352909) ## End(Not run)
## Not run: get_user_watch_time_stats(user_id = 1352909) ## End(Not run)
Get Users
get_users(url = NULL, apikey = NULL)
get_users(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
A tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_users
## Not run: get_users() ## End(Not run)
## Not run: get_users() ## End(Not run)
Get a Users Table
get_users_table( url = NULL, apikey = NULL, order_column = NULL, order_dir = "desc", start = 0, length = 50, search = NULL )
get_users_table( url = NULL, apikey = NULL, order_column = NULL, order_dir = "desc", start = 0, length = 50, search = NULL )
url |
Server URL. |
apikey |
API key. |
order_column |
"user_thumb", "friendly_name", "last_seen", "ip_address", "platform", "player", "last_played", "plays", "duration" |
order_dir |
"desc" (default) or "asc" |
start |
Row to start from, default is 0 |
length |
Number of items to return, default is 50. |
search |
A string to search for |
A tbl
https://github.com/Tautulli/Tautulli/blob/master/API.md#get_users_table
## Not run: get_users_table() ## End(Not run)
## Not run: get_users_table() ## End(Not run)
Search for Media Items
search_server(url = NULL, apikey = NULL, query, limit = 10)
search_server(url = NULL, apikey = NULL, query, limit = 10)
url |
Server URL. |
apikey |
API key. |
query |
The query string to search for |
limit |
The maximum number of items to return per media type, default is |
A list
with each type of media
I would have named the function search
, but you know, base::search
.
https://github.com/Tautulli/Tautulli/blob/master/API.md#search
## Not run: search_server(query = "game of Thrones", limit = 1) ## End(Not run)
## Not run: search_server(query = "game of Thrones", limit = 1) ## End(Not run)
Check for Tautulli Updates
update_check(url = NULL, apikey = NULL)
update_check(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
Invisibly TRUE
when an update is available, FALSE
when no update is available.
https://github.com/Tautulli/Tautulli/blob/beta/API.md#update_check
## Not run: update_check() ## End(Not run)
## Not run: update_check() ## End(Not run)
Apply Tautulli Updates
update_tautulli(url = NULL, apikey = NULL)
update_tautulli(url = NULL, apikey = NULL)
url |
Server URL. |
apikey |
API key. |
Invisibly TRUE
when the update is applied, FALSE
when there is an issue.
https://github.com/Tautulli/Tautulli/blob/beta/API.md#update
## Not run: update_tautulli() ## End(Not run)
## Not run: update_tautulli() ## End(Not run)
A subset of 283 of the 1000 most common English words. From the original list, only words longer than 5 and without apostrophes were selected.
words
words
A character
of length 283 containing words.
I should have just used stringr::words
https://gist.github.com/deekayen/4148741/01c6252ccc5b5fb307c1bb899c95989a8a284616/