mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-10 04:21:03 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.129.1
This commit is contained in:
98
docs/sdks/hubs/README.md
Normal file
98
docs/sdks/hubs/README.md
Normal file
@@ -0,0 +1,98 @@
|
||||
# Hubs
|
||||
|
||||
|
||||
## Overview
|
||||
|
||||
Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows.
|
||||
|
||||
|
||||
### Available Operations
|
||||
|
||||
* [get_global_hubs](#get_global_hubs) - Get Global Hubs
|
||||
* [get_library_hubs](#get_library_hubs) - Get library specific hubs
|
||||
|
||||
## get_global_hubs
|
||||
|
||||
Get Global Hubs filtered by the parameters provided.
|
||||
|
||||
### Example Usage
|
||||
|
||||
```ruby
|
||||
require_relative plexruby
|
||||
|
||||
|
||||
s = OpenApiSDK::PlexAPI.new
|
||||
s.config_security(
|
||||
security=Shared::Security.new(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
req = Operations::GetGlobalHubsRequest.new()
|
||||
|
||||
res = s.hubs.get_global_hubs(count=1262.49, only_transient=Operations::OnlyTransient::ONE)
|
||||
|
||||
if res.status == 200
|
||||
# handle response
|
||||
end
|
||||
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `count` | *Float* | :heavy_minus_sign: | The number of items to return with each hub. |
|
||||
| `only_transient` | [Operations::OnlyTransient](../../models/operations/onlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**[T.nilable(Operations::GetGlobalHubsResponse)](../../models/operations/getglobalhubsresponse.md)**
|
||||
|
||||
|
||||
## get_library_hubs
|
||||
|
||||
This endpoint will return a list of library specific hubs
|
||||
|
||||
|
||||
### Example Usage
|
||||
|
||||
```ruby
|
||||
require_relative plexruby
|
||||
|
||||
|
||||
s = OpenApiSDK::PlexAPI.new
|
||||
s.config_security(
|
||||
security=Shared::Security.new(
|
||||
access_token="<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
req = Operations::GetLibraryHubsRequest.new(
|
||||
section_id=6728.76,
|
||||
)
|
||||
|
||||
res = s.hubs.get_library_hubs(section_id=9010.22, count=639.24, only_transient=Operations::QueryParamOnlyTransient::ONE)
|
||||
|
||||
if res.status == 200
|
||||
# handle response
|
||||
end
|
||||
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `section_id` | *Float* | :heavy_check_mark: | the Id of the library to query |
|
||||
| `count` | *Float* | :heavy_minus_sign: | The number of items to return with each hub. |
|
||||
| `only_transient` | [Operations::QueryParamOnlyTransient](../../models/operations/queryparamonlytransient.md) | :heavy_minus_sign: | Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**[T.nilable(Operations::GetLibraryHubsResponse)](../../models/operations/getlibraryhubsresponse.md)**
|
||||
|
||||
Reference in New Issue
Block a user