mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
1.8 KiB
1.8 KiB
Statistics
Overview
API Calls that perform operations with Plex Media Server Statistics
Available Operations
- get_statistics - Get Media Statistics
get_statistics
This will return the media statistics for the server
Example Usage
require 'plexruby'
s = ::OpenApiSDK::PlexAPI.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.statistics.get_statistics(timespan=411769)
if ! res.two_hundred_application_json_object.nil?
# handle response
end
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
timespan |
::Integer | ➖ | The timespan to retrieve statistics for the exact meaning of this parameter is not known |