mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.402.14
This commit is contained in:
@@ -85,7 +85,7 @@ s.config_security(
|
||||
)
|
||||
|
||||
|
||||
res = s.authentication.get_source_connection_information(source="provider://provider-identifier")
|
||||
res = s.authentication.get_source_connection_information(source="server://client-identifier")
|
||||
|
||||
if res.status_code == 200
|
||||
# handle response
|
||||
@@ -170,10 +170,12 @@ s = ::PlexRubySDK::PlexAPI.new(
|
||||
)
|
||||
|
||||
|
||||
req = ::PlexRubySDK::Operations::PostUsersSignInDataRequestBody.new(
|
||||
login: "username@email.com",
|
||||
password: "password123",
|
||||
verification_code: "123456",
|
||||
req = ::PlexRubySDK::Operations::PostUsersSignInDataRequest.new(
|
||||
request_body: ::PlexRubySDK::Operations::PostUsersSignInDataRequestBody.new(
|
||||
login: "username@email.com",
|
||||
password: "password123",
|
||||
verification_code: "123456",
|
||||
),
|
||||
)
|
||||
|
||||
res = s.authentication.post_users_sign_in_data(req)
|
||||
@@ -186,10 +188,10 @@ end
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
||||
| `request` | [::PlexRubySDK::Operations::PostUsersSignInDataRequestBody](../../models/operations/postuserssignindatarequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||
| `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. |
|
||||
| Parameter | Type | Required | Description |
|
||||
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
||||
| `request` | [::PlexRubySDK::Operations::PostUsersSignInDataRequest](../../models/operations/postuserssignindatarequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||
| `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. |
|
||||
|
||||
### Response
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ Hubs are a structured two-dimensional container for media, generally represented
|
||||
### Available Operations
|
||||
|
||||
* [get_global_hubs](#get_global_hubs) - Get Global Hubs
|
||||
* [get_recently_added](#get_recently_added) - Get Recently Added
|
||||
* [get_library_hubs](#get_library_hubs) - Get library specific hubs
|
||||
|
||||
## get_global_hubs
|
||||
@@ -56,6 +57,61 @@ end
|
||||
|
||||
|
||||
|
||||
## get_recently_added
|
||||
|
||||
This endpoint will return the recently added content.
|
||||
|
||||
|
||||
### Example Usage
|
||||
|
||||
```ruby
|
||||
require 'plex_ruby_sdk'
|
||||
|
||||
|
||||
s = ::PlexRubySDK::PlexAPI.new(
|
||||
client_id: "gcgzw5rz2xovp84b4vha3a40",
|
||||
client_name: "Plex Web",
|
||||
client_version: "4.133.0",
|
||||
client_platform: "Chrome",
|
||||
device_name: "Linux",
|
||||
)
|
||||
s.config_security(
|
||||
::PlexRubySDK::Shared::Security.new(
|
||||
access_token: "<YOUR_API_KEY_HERE>",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
req = ::PlexRubySDK::Operations::GetRecentlyAddedRequest.new(
|
||||
content_directory_id: 470161,
|
||||
section_id: 2,
|
||||
type: ::PlexRubySDK::Operations::Type::TV_SHOW,
|
||||
include_meta: ::PlexRubySDK::Operations::IncludeMeta::ENABLE,
|
||||
x_plex_container_start: 0,
|
||||
x_plex_container_size: 50,
|
||||
)
|
||||
|
||||
res = s.hubs.get_recently_added(req)
|
||||
|
||||
if ! res.object.nil?
|
||||
# handle response
|
||||
end
|
||||
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
||||
| `request` | [::PlexRubySDK::Operations::GetRecentlyAddedRequest](../../models/operations/getrecentlyaddedrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||
|
||||
### Response
|
||||
|
||||
**[T.nilable(::PlexRubySDK::Operations::GetRecentlyAddedResponse)](../../models/operations/getrecentlyaddedresponse.md)**
|
||||
|
||||
|
||||
|
||||
|
||||
## get_library_hubs
|
||||
|
||||
This endpoint will return a list of library specific hubs
|
||||
|
||||
@@ -8,7 +8,7 @@ API Calls interacting with Plex Media Server Libraries
|
||||
### Available Operations
|
||||
|
||||
* [get_file_hash](#get_file_hash) - Get Hash Value
|
||||
* [get_recently_added](#get_recently_added) - Get Recently Added
|
||||
* [get_recently_added_library](#get_recently_added_library) - Get Recently Added
|
||||
* [get_all_libraries](#get_all_libraries) - Get All Libraries
|
||||
* [get_library_details](#get_library_details) - Get Library Details
|
||||
* [delete_library](#delete_library) - Delete Library Section
|
||||
@@ -66,7 +66,7 @@ end
|
||||
|
||||
|
||||
|
||||
## get_recently_added
|
||||
## get_recently_added_library
|
||||
|
||||
This endpoint will return the recently added content.
|
||||
|
||||
@@ -90,8 +90,31 @@ s.config_security(
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
req = ::PlexRubySDK::Operations::GetRecentlyAddedLibraryRequest.new(
|
||||
content_directory_id: 2,
|
||||
pinned_content_directory_id: [
|
||||
3,
|
||||
5,
|
||||
7,
|
||||
13,
|
||||
12,
|
||||
1,
|
||||
6,
|
||||
14,
|
||||
2,
|
||||
10,
|
||||
16,
|
||||
17,
|
||||
],
|
||||
section_id: 2,
|
||||
type: ::PlexRubySDK::Operations::QueryParamType::TV_SHOW,
|
||||
include_meta: ::PlexRubySDK::Operations::QueryParamIncludeMeta::ENABLE,
|
||||
x_plex_container_start: 0,
|
||||
x_plex_container_size: 50,
|
||||
)
|
||||
|
||||
res = s.library.get_recently_added(x_plex_container_start=0, x_plex_container_size=50)
|
||||
res = s.library.get_recently_added_library(req)
|
||||
|
||||
if ! res.object.nil?
|
||||
# handle response
|
||||
@@ -101,14 +124,13 @@ end
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `x_plex_container_start` | *::Integer* | :heavy_minus_sign: | The index of the first item to return. If not specified, the first item will be returned.<br/>If the number of items exceeds the limit, the response will be paginated.<br/>By default this is 0<br/> | 0 |
|
||||
| `x_plex_container_size` | *::Integer* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.<br/>If the number of items exceeds the limit, the response will be paginated.<br/>By default this is 50<br/> | 50 |
|
||||
| Parameter | Type | Required | Description |
|
||||
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
||||
| `request` | [::PlexRubySDK::Operations::GetRecentlyAddedLibraryRequest](../../models/operations/getrecentlyaddedlibraryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||
|
||||
### Response
|
||||
|
||||
**[T.nilable(::PlexRubySDK::Operations::GetRecentlyAddedResponse)](../../models/operations/getrecentlyaddedresponse.md)**
|
||||
**[T.nilable(::PlexRubySDK::Operations::GetRecentlyAddedLibraryResponse)](../../models/operations/getrecentlyaddedlibraryresponse.md)**
|
||||
|
||||
|
||||
|
||||
@@ -336,8 +358,8 @@ req = ::PlexRubySDK::Operations::GetLibraryItemsRequest.new(
|
||||
section_key: 9518,
|
||||
tag: ::PlexRubySDK::Operations::Tag::EDITION,
|
||||
include_guids: ::PlexRubySDK::Operations::IncludeGuids::ENABLE,
|
||||
include_meta: ::PlexRubySDK::Operations::IncludeMeta::ENABLE,
|
||||
type: ::PlexRubySDK::Operations::Type::TV_SHOW,
|
||||
type: ::PlexRubySDK::Operations::GetLibraryItemsQueryParamType::TV_SHOW,
|
||||
include_meta: ::PlexRubySDK::Operations::GetLibraryItemsQueryParamIncludeMeta::ENABLE,
|
||||
x_plex_container_start: 0,
|
||||
x_plex_container_size: 50,
|
||||
)
|
||||
@@ -452,7 +474,7 @@ s.config_security(
|
||||
)
|
||||
|
||||
|
||||
res = s.library.get_search_library(section_key=9518, type=::PlexRubySDK::Operations::QueryParamType::TV_SHOW)
|
||||
res = s.library.get_search_library(section_key=9518, type=::PlexRubySDK::Operations::GetSearchLibraryQueryParamType::TV_SHOW)
|
||||
|
||||
if ! res.object.nil?
|
||||
# handle response
|
||||
@@ -465,7 +487,7 @@ end
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `section_key` | *::Integer* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||
| `type` | [::PlexRubySDK::Operations::QueryParamType](../../models/operations/queryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.<br/>1 = movie<br/>2 = show<br/>3 = season<br/>4 = episode<br/>E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/> | 2 |
|
||||
| `type` | [::PlexRubySDK::Operations::GetSearchLibraryQueryParamType](../../models/operations/getsearchlibraryqueryparamtype.md) | :heavy_check_mark: | The type of media to retrieve.<br/>1 = movie<br/>2 = show<br/>3 = season<br/>4 = episode<br/>E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/> | 2 |
|
||||
|
||||
### Response
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ s.config_security(
|
||||
)
|
||||
|
||||
|
||||
res = s.search.perform_search(query="dylan", section_id=5838.67, limit=5.0)
|
||||
res = s.search.perform_search(query="dylan", section_id=9372.69, limit=5.0)
|
||||
|
||||
if res.status_code == 200
|
||||
# handle response
|
||||
|
||||
@@ -275,9 +275,9 @@ req = ::PlexRubySDK::Operations::GetResizedPhotoRequest.new(
|
||||
width: 110.0,
|
||||
height: 165.0,
|
||||
opacity: 643869,
|
||||
blur: 4000.0,
|
||||
blur: 0.0,
|
||||
min_size: ::PlexRubySDK::Operations::MinSize::ONE,
|
||||
upscale: ::PlexRubySDK::Operations::Upscale::ZERO,
|
||||
upscale: ::PlexRubySDK::Operations::Upscale::ONE,
|
||||
url: "/library/metadata/49564/thumb/1654258204",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user