mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 04:20:52 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5
This commit is contained in:
@@ -6,6 +6,9 @@ Metrics:
|
||||
Enabled: false
|
||||
Style/IfInsideElse:
|
||||
Enabled: false
|
||||
# Temporary until Ruby deals with empty responses correctly
|
||||
Style/EmptyElse:
|
||||
Enabled: false
|
||||
Style/GuardClause:
|
||||
Enabled: false
|
||||
Style/ConditionalAssignment:
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
lockVersion: 2.0.0
|
||||
id: aa9449e7-c19d-411d-b8e2-f9c5fe982f6f
|
||||
management:
|
||||
docChecksum: 5e039359563b41bbe118fc6701ba22dc
|
||||
docChecksum: e7673f3f46e5b0bf495c378378aa7ad6
|
||||
docVersion: 0.0.3
|
||||
speakeasyVersion: 1.402.14
|
||||
generationVersion: 2.422.22
|
||||
releaseVersion: 0.4.2
|
||||
configChecksum: bf8c6debe1b811f37b69f20b78e3900b
|
||||
speakeasyVersion: 1.404.5
|
||||
generationVersion: 2.426.2
|
||||
releaseVersion: 0.4.3
|
||||
configChecksum: 99bb289a2dc7a206fe4ee310195b2359
|
||||
repoURL: https://github.com/LukeHagar/plexruby.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/plexruby
|
||||
published: true
|
||||
features:
|
||||
ruby:
|
||||
core: 3.2.24
|
||||
core: 3.2.25
|
||||
deprecations: 2.81.1
|
||||
enums: 2.81.1
|
||||
flattening: 2.81.1
|
||||
@@ -1971,7 +1971,12 @@ examples:
|
||||
parameters:
|
||||
path:
|
||||
pinID: 408895
|
||||
query: {}
|
||||
query:
|
||||
X-Plex-Client-Identifier: "gcgzw5rz2xovp84b4vha3a40"
|
||||
X-Plex-Product: "Plex Web"
|
||||
X-Plex-Device: "Linux"
|
||||
X-Plex-Version: "4.133.0"
|
||||
X-Plex-Platform: "Chrome"
|
||||
responses:
|
||||
"404":
|
||||
application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]}
|
||||
@@ -2399,7 +2404,7 @@ examples:
|
||||
speakeasy-default-get-token-details:
|
||||
responses:
|
||||
"200":
|
||||
application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null}
|
||||
application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null}
|
||||
"400":
|
||||
application/json: {"errors": []}
|
||||
"401":
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
ruby:
|
||||
version: 0.4.2
|
||||
version: 0.4.3
|
||||
author: LukeHagar
|
||||
description: Ruby Client SDK Generated by Speakeasy
|
||||
imports:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
speakeasyVersion: 1.402.14
|
||||
speakeasyVersion: 1.404.5
|
||||
sources:
|
||||
my-source:
|
||||
sourceNamespace: my-source
|
||||
@@ -9,8 +9,8 @@ sources:
|
||||
- main
|
||||
plexapi:
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:b7081644a59eca24a22b8009506fcf459bf18b07dce0462b39bc36c40d94862e
|
||||
sourceBlobDigest: sha256:6b822f23afbc630bbc0fc12299316ea03d3671a2c2a81241ad4caa49022b430e
|
||||
sourceRevisionDigest: sha256:276a31ab98595ebaf2b1fac4b4f5c3c1c7b55e0431f9074c89b8fbcb55b52d3f
|
||||
sourceBlobDigest: sha256:2bc9e816db669d609d8a5988ebb629578dc5cbbaff191d260b5c63b7ba1bd59b
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -18,10 +18,10 @@ targets:
|
||||
plexruby:
|
||||
source: plexapi
|
||||
sourceNamespace: plexapi
|
||||
sourceRevisionDigest: sha256:b7081644a59eca24a22b8009506fcf459bf18b07dce0462b39bc36c40d94862e
|
||||
sourceBlobDigest: sha256:6b822f23afbc630bbc0fc12299316ea03d3671a2c2a81241ad4caa49022b430e
|
||||
sourceRevisionDigest: sha256:276a31ab98595ebaf2b1fac4b4f5c3c1c7b55e0431f9074c89b8fbcb55b52d3f
|
||||
sourceBlobDigest: sha256:2bc9e816db669d609d8a5988ebb629578dc5cbbaff191d260b5c63b7ba1bd59b
|
||||
codeSamplesNamespace: code-samples-ruby-plexruby
|
||||
codeSamplesRevisionDigest: sha256:2e926a14a71aa699533691b1e736837f18fd9d63fb94993e442e01cc4391a075
|
||||
codeSamplesRevisionDigest: sha256:dcfb147640b3379a713f9855e3861b8961efb0ee80eda4ebbed95619e43b47c3
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: latest
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
plex_ruby_sdk (0.4.2)
|
||||
plex_ruby_sdk (0.4.3)
|
||||
faraday
|
||||
faraday-multipart
|
||||
rack
|
||||
|
||||
27
README.md
27
README.md
@@ -11,6 +11,31 @@
|
||||
## Summary
|
||||
|
||||
Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
|
||||
|
||||
# Plex Media Server OpenAPI Specification
|
||||
|
||||
An Open Source OpenAPI Specification for Plex Media Server
|
||||
|
||||
Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
|
||||
|
||||
## Documentation
|
||||
|
||||
[API Documentation](https://plexapi.dev)
|
||||
|
||||
## SDKs
|
||||
|
||||
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the respective repository.
|
||||
|
||||
| Language | Repository | Releases | Other |
|
||||
| --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
|
||||
| Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
|
||||
| JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
|
||||
| Go | [GitHub](https://github.com/LukeHagar/plexgo) | [Releases](https://github.com/LukeHagar/plexgo/releases) | [GoDoc](https://pkg.go.dev/github.com/LukeHagar/plexgo) |
|
||||
| Ruby | [GitHub](https://github.com/LukeHagar/plexruby) | [Releases](https://github.com/LukeHagar/plexruby/releases) | - |
|
||||
| Swift | [GitHub](https://github.com/LukeHagar/plexswift) | [Releases](https://github.com/LukeHagar/plexswift/releases) | - |
|
||||
| PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
|
||||
| Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
|
||||
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
|
||||
<!-- End Summary [summary] -->
|
||||
|
||||
<!-- Start Table of Contents [toc] -->
|
||||
@@ -246,7 +271,7 @@ s.config_security(
|
||||
)
|
||||
|
||||
|
||||
res = s.plex.get_companions_data(server_url: "https://plex.tv/api/v2/")
|
||||
res = s.plex.get_companions_data(server_url: "https://plex.tv/api/v2")
|
||||
|
||||
if ! res.response_bodies.nil?
|
||||
# handle response
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -566,4 +566,14 @@ Based on:
|
||||
### Generated
|
||||
- [ruby v0.4.2] .
|
||||
### Releases
|
||||
- [Ruby Gems v0.4.2] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.2 - .
|
||||
- [Ruby Gems v0.4.2] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.2 - .
|
||||
|
||||
## 2024-09-28 00:07:44
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [ruby v0.4.3] .
|
||||
### Releases
|
||||
- [Ruby Gems v0.4.3] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.3 - .
|
||||
@@ -290,7 +290,7 @@ actions:
|
||||
x-codeSamples:
|
||||
- lang: ruby
|
||||
label: getTokenByPinId
|
||||
source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n client_id: \"gcgzw5rz2xovp84b4vha3a40\",\n client_name: \"Plex Web\",\n client_version: \"4.133.0\",\n client_platform: \"Chrome\",\n device_name: \"Linux\",\n )\n\n \nres = s.plex.get_token_by_pin_id(pin_id=408895)\n\nif ! res.auth_pin_container.nil?\n # handle response\nend"
|
||||
source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n client_id: \"gcgzw5rz2xovp84b4vha3a40\",\n client_name: \"Plex Web\",\n client_version: \"4.133.0\",\n client_platform: \"Chrome\",\n device_name: \"Linux\",\n )\n\n\nreq = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(\n pin_id: 408895,\n)\n \nres = s.plex.get_token_by_pin_id(req)\n\nif ! res.auth_pin_container.nil?\n # handle response\nend"
|
||||
- target: $["paths"]["/playlists"]["get"]
|
||||
update:
|
||||
x-codeSamples:
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
||||
| `protocol` | [::PlexRubySDK::Operations::Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) |
|
||||
| `address` | *::String* | :heavy_check_mark: | The (ip) address or domain name used for the connection |
|
||||
| `port` | *::Integer* | :heavy_check_mark: | The port used for the connection |
|
||||
| `uri` | *::String* | :heavy_check_mark: | The full URI of the connection |
|
||||
| `local` | *T::Boolean* | :heavy_check_mark: | If the connection is local address |
|
||||
| `relay` | *T::Boolean* | :heavy_check_mark: | If the connection is relayed through plex.direct |
|
||||
| `i_pv6` | *T::Boolean* | :heavy_check_mark: | If the connection is using IPv6 |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
||||
| `protocol` | [::PlexRubySDK::Operations::Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | http |
|
||||
| `address` | *::String* | :heavy_check_mark: | The (ip) address or domain name used for the connection | |
|
||||
| `port` | *::Integer* | :heavy_check_mark: | The port used for the connection | |
|
||||
| `uri` | *::String* | :heavy_check_mark: | The full URI of the connection | |
|
||||
| `local` | *T::Boolean* | :heavy_check_mark: | If the connection is local address | |
|
||||
| `relay` | *T::Boolean* | :heavy_check_mark: | If the connection is relayed through plex.direct | |
|
||||
| `i_pv6` | *T::Boolean* | :heavy_check_mark: | If the connection is using IPv6 | |
|
||||
@@ -3,6 +3,11 @@
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
|
||||
| `pin_id` | *::Integer* | :heavy_check_mark: | The PinID to retrieve an access token for |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `pin_id` | *::Integer* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||
| `client_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
|
||||
| `client_name` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | Plex Web |
|
||||
| `device_name` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | Linux |
|
||||
| `client_version` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | 4.133.0 |
|
||||
| `client_platform` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | Chrome |
|
||||
@@ -29,7 +29,7 @@ Logged in user details
|
||||
| `joined_at` | *::Integer* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||
| `locale` | *::String* | :heavy_check_mark: | The account locale | |
|
||||
| `mailing_list_active` | *T::Boolean* | :heavy_check_mark: | If you are subscribed to the Plex newsletter | |
|
||||
| `mailing_list_status` | [::PlexRubySDK::Operations::MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
||||
| `mailing_list_status` | [::PlexRubySDK::Operations::MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status (active or unsubscribed) | active |
|
||||
| `max_home_size` | *::Integer* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
|
||||
| ~~`pin`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
|
||||
| `profile` | [::PlexRubySDK::Operations::UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# MailingListStatus
|
||||
|
||||
Your current mailing list status
|
||||
Your current mailing list status (active or unsubscribed)
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# PostUsersSignInDataMailingListStatus
|
||||
|
||||
Your current mailing list status
|
||||
Your current mailing list status (active or unsubscribed)
|
||||
|
||||
|
||||
## Values
|
||||
|
||||
@@ -29,7 +29,7 @@ Returns the user account data with a valid auth token
|
||||
| `joined_at` | *::Integer* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||
| `locale` | *::String* | :heavy_check_mark: | The account locale | |
|
||||
| `mailing_list_active` | *T::Boolean* | :heavy_check_mark: | If you are subscribed to the Plex newsletter | |
|
||||
| `mailing_list_status` | [::PlexRubySDK::Operations::PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | |
|
||||
| `mailing_list_status` | [::PlexRubySDK::Operations::PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status (active or unsubscribed) | active |
|
||||
| `max_home_size` | *::Integer* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
|
||||
| ~~`pin`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
|
||||
| `profile` | [::PlexRubySDK::Operations::PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | |
|
||||
|
||||
@@ -293,8 +293,12 @@ s = ::PlexRubySDK::PlexAPI.new(
|
||||
device_name: "Linux",
|
||||
)
|
||||
|
||||
|
||||
req = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
|
||||
pin_id: 408895,
|
||||
)
|
||||
|
||||
res = s.plex.get_token_by_pin_id(pin_id=408895)
|
||||
res = s.plex.get_token_by_pin_id(req)
|
||||
|
||||
if ! res.auth_pin_container.nil?
|
||||
# handle response
|
||||
@@ -304,10 +308,10 @@ end
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
|
||||
| `pin_id` | *::Integer* | :heavy_check_mark: | The PinID to retrieve an access token for |
|
||||
| `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. |
|
||||
| Parameter | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
||||
| `request` | [::PlexRubySDK::Operations::GetTokenByPinIdRequest](../../models/operations/gettokenbypinidrequest.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
|
||||
|
||||
|
||||
@@ -2,4 +2,27 @@
|
||||
|
||||
## Overview
|
||||
|
||||
Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
|
||||
# Plex Media Server OpenAPI Specification
|
||||
|
||||
An Open Source OpenAPI Specification for Plex Media Server
|
||||
|
||||
Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
|
||||
|
||||
## Documentation
|
||||
|
||||
[API Documentation](https://plexapi.dev)
|
||||
|
||||
## SDKs
|
||||
|
||||
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the respective repository.
|
||||
|
||||
| Language | Repository | Releases | Other |
|
||||
| --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
|
||||
| Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
|
||||
| JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
|
||||
| Go | [GitHub](https://github.com/LukeHagar/plexgo) | [Releases](https://github.com/LukeHagar/plexgo/releases) | [GoDoc](https://pkg.go.dev/github.com/LukeHagar/plexgo) |
|
||||
| Ruby | [GitHub](https://github.com/LukeHagar/plexruby) | [Releases](https://github.com/LukeHagar/plexruby/releases) | - |
|
||||
| Swift | [GitHub](https://github.com/LukeHagar/plexswift) | [Releases](https://github.com/LukeHagar/plexswift/releases) | - |
|
||||
| PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
|
||||
| Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
|
||||
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
|
||||
|
||||
@@ -14,12 +14,12 @@ module PlexRubySDK
|
||||
|
||||
# GET_TOKEN_DETAILS_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_TOKEN_DETAILS_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
|
||||
# POST_USERS_SIGN_IN_DATA_SERVERS contains the list of server urls available to the SDK.
|
||||
POST_USERS_SIGN_IN_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
# API Calls regarding authentication for Plex Media Server
|
||||
#
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
AUTO_SELECT_SUBTITLE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
BILLING_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
CONNECTIONS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# DefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
DEFAULT_SUBTITLE_FORCED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# DefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
FEATURES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
FRIEND_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Geo location data
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Geo location data
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_AUTH_PIN_CONTAINER_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Requests a new pin id used in the authentication flow
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_AUTH_PIN_CONTAINER_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# The Pin with a non-null authToken when it has been verified by the user
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Geo location data
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
@@ -16,11 +16,29 @@ module PlexRubySDK
|
||||
|
||||
# The PinID to retrieve an access token for
|
||||
field :pin_id, ::Integer, { 'path_param': { 'field_name': 'pinID', 'style': 'simple', 'explode': false } }
|
||||
# The unique identifier for the client application
|
||||
# This is used to track the client application and its usage
|
||||
# (UUID, serial number, or other number unique per device)
|
||||
#
|
||||
field :client_id, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :client_name, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Product', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :client_platform, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Platform', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :client_version, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Version', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :device_name, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Device', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(pin_id: ::Integer).void }
|
||||
def initialize(pin_id: nil)
|
||||
sig { params(pin_id: ::Integer, client_id: T.nilable(::String), client_name: T.nilable(::String), client_platform: T.nilable(::String), client_version: T.nilable(::String), device_name: T.nilable(::String)).void }
|
||||
def initialize(pin_id: nil, client_id: nil, client_name: nil, client_platform: nil, client_version: nil, device_name: nil)
|
||||
@pin_id = pin_id
|
||||
@client_id = client_id
|
||||
@client_name = client_name
|
||||
@client_platform = client_platform
|
||||
@client_version = client_version
|
||||
@device_name = device_name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_RESPONSE_BODY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Not Found or Expired
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_AUTHENTICATION_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_AUTHENTICATION_RESPONSE_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_AUTHENTICATION_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_FEATURES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_USER_PLEX_ACCOUNT_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Logged in user details
|
||||
@@ -60,7 +60,7 @@ module PlexRubySDK
|
||||
field :locale, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('locale') } }
|
||||
# If you are subscribed to the Plex newsletter
|
||||
field :mailing_list_active, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mailingListActive') } }
|
||||
# Your current mailing list status
|
||||
# Your current mailing list status (active or unsubscribed)
|
||||
field :mailing_list_status, ::PlexRubySDK::Operations::MailingListStatus, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mailingListStatus'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::MailingListStatus, false) } }
|
||||
# The maximum number of accounts allowed in the Plex Home
|
||||
field :max_home_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('maxHomeSize') } }
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
INCLUDE_HTTPS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# IncludeHttps - Include Https entries in the results
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
INCLUDE_I_PV6_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# IncludeIPv6 - Include IPv6 entries in the results
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
INCLUDE_RELAY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# IncludeRelay - Include Relay addresses in the results
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
INTERNAL_PAYMENT_METHOD_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
MAILING_LIST_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# MailingListStatus - Your current mailing list status
|
||||
# MailingListStatus - Your current mailing list status (active or unsubscribed)
|
||||
class MailingListStatus < T::Enum
|
||||
enums do
|
||||
ACTIVE = new('active')
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
MEDIA_REVIEWS_VISIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
PAST_SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
PLEX_DEVICE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_FEATURES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_RESPONSE_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTO_SELECT_SUBTITLE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataDefaultSubtitleAccessibility - The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only show non-SDH subtitles)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_DEFAULT_SUBTITLE_FORCED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataDefaultSubtitleForced - The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_FEATURES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_MAILING_LIST_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataMailingListStatus - Your current mailing list status
|
||||
# PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed)
|
||||
class PostUsersSignInDataMailingListStatus < T::Enum
|
||||
enums do
|
||||
ACTIVE = new('active')
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_MEDIA_REVIEWS_VISIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_REQUEST_BODY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Login credentials
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_SERVICES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_STATE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# If the account’s Plex Pass subscription is active
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user