mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-09 20:57:43 +00:00
21 lines
370 B
Markdown
21 lines
370 B
Markdown
<!-- Start SDK Example Usage [usage] -->
|
|
```ruby
|
|
require_relative plexruby
|
|
|
|
|
|
s = ::OpenApiSDK::PlexAPI.new
|
|
s.config_security(
|
|
security=Shared::Security.new(
|
|
access_token="<YOUR_API_KEY_HERE>",
|
|
)
|
|
)
|
|
|
|
|
|
res = s.server.get_server_capabilities()
|
|
|
|
if ! res.two_hundred_application_json_object.nil?
|
|
# handle response
|
|
end
|
|
|
|
```
|
|
<!-- End SDK Example Usage [usage] --> |