Media
Mark Media Played
Media
Mark Media Played
This will mark the provided media key as Played.
GET
{protocol}://{ip}:{port}
/
:
/
scrobble
protocol
enum<string>
protocol
enum<string>
The protocol to use for the server connection
ip
string
ip
string
The IP address or hostname of your Plex Server
port
string
port
string
The port of your Plex Server
X-Plex-Token
string
*
X-Plex-Token
Required
string
Plex Authentication Token
key
number
*
key
Required
number
The media key to mark as played
Add Example Value
Copy
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.media.mark_played(key=59398.0)
if res.status_code == 200
# handle response
end
Copy
This response has no body data.
Authorizations
Plex Authentication Token
Query Parameters
The media key to mark as played
Copy
require 'plex_ruby_sdk'
s = ::PlexRubySDK::PlexAPI.new
s.config_security(
::PlexRubySDK::Shared::Security.new(
access_token: "<YOUR_API_KEY_HERE>",
)
)
res = s.media.mark_played(key=59398.0)
if res.status_code == 200
# handle response
end
Copy
This response has no body data.