mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 04:20:52 +00:00
regenerated with newest spec, reconfigured actions and adding publishing
This commit is contained in:
8
USAGE.md
8
USAGE.md
@@ -3,11 +3,11 @@
|
||||
require 'plexruby'
|
||||
|
||||
|
||||
s = ::OpenApiSDK::PlexAPI.new(
|
||||
x_plex_client_identifier: "Postman",
|
||||
s = ::PlexRubySDK::PlexAPI.new(
|
||||
x_plex_client_identifier: "gcgzw5rz2xovp84b4vha3a40",
|
||||
)
|
||||
s.config_security(
|
||||
::OpenApiSDK::Shared::Security.new(
|
||||
::PlexRubySDK::Shared::Security.new(
|
||||
access_token: "<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
)
|
||||
@@ -15,7 +15,7 @@ s.config_security(
|
||||
|
||||
res = s.server.get_server_capabilities()
|
||||
|
||||
if ! res.two_hundred_application_json_object.nil?
|
||||
if ! res.object.nil?
|
||||
# handle response
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user