mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-09 12:37:45 +00:00
Moved client identifier
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
name: X-Plex-Client-Identifier
|
||||
description: |
|
||||
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)
|
||||
in: header
|
||||
schema:
|
||||
type: string
|
||||
example: Postman
|
||||
required: true
|
||||
@@ -1,8 +0,0 @@
|
||||
name: X-Plex-Product
|
||||
description: |
|
||||
Product name of the application shown in the list of devices
|
||||
in: header
|
||||
schema:
|
||||
type: string
|
||||
example: Postman
|
||||
required: true
|
||||
@@ -1,6 +1,10 @@
|
||||
name: X-Plex-Client-Identifier
|
||||
description: |
|
||||
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)
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
example: "gcgzw5rz2xovp84b4vha3a40"
|
||||
example: gcgzw5rz2xovp84b4vha3a40
|
||||
required: true
|
||||
|
||||
@@ -4,4 +4,4 @@ description: Plex Authentication Token
|
||||
schema:
|
||||
type: string
|
||||
example: CV5xoxjTpFKUzBTShsaf
|
||||
required: false
|
||||
required: true
|
||||
@@ -16,7 +16,7 @@ get:
|
||||
- $ref: "../../../../../parameters/image/height.yaml"
|
||||
- $ref: "../../../../../parameters/image/min-size.yaml"
|
||||
- $ref: "../../../../../parameters/image/upscale.yaml"
|
||||
- $ref: "../../../../../parameters/plex-token.yaml"
|
||||
- $ref: "../../../../../parameters/plex/x-plex-token.yaml"
|
||||
responses:
|
||||
'200':
|
||||
description: Successful response returning an image
|
||||
|
||||
@@ -16,7 +16,7 @@ get:
|
||||
- $ref: "../../../../../parameters/image/height.yaml"
|
||||
- $ref: "../../../../../parameters/image/min-size.yaml"
|
||||
- $ref: "../../../../../parameters/image/upscale.yaml"
|
||||
- $ref: "../../../../../parameters/plex-token.yaml"
|
||||
- $ref: "../../../../../parameters/plex/x-plex-token.yaml"
|
||||
responses:
|
||||
'200':
|
||||
description: Successful response returning an image
|
||||
|
||||
@@ -71,7 +71,7 @@ get:
|
||||
- $ref: "../../../../parameters/accept-application-json.yaml"
|
||||
- $ref: "../../../../parameters/container-start.yaml"
|
||||
- $ref: "../../../../parameters/container-size.yaml"
|
||||
- $ref: "../../../../parameters/plex-token.yaml"
|
||||
- $ref: "../../../../parameters/plex/x-plex-token.yaml"
|
||||
responses:
|
||||
"200":
|
||||
description: Watchlist Data
|
||||
|
||||
@@ -17,12 +17,7 @@ get:
|
||||
- $ref: '../../../parameters/plex/x-plex-product.yaml'
|
||||
- $ref: '../../../parameters/plex/x-plex-session-id.yaml'
|
||||
- $ref: '../../../parameters/plex/x-plex-version.yaml'
|
||||
- name: X-Plex-Token
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
example: "tW7zyenPCasLpVnaZa8y"
|
||||
- $ref: '../../../parameters/plex/x-plex-token.yaml'
|
||||
responses:
|
||||
'200':
|
||||
description: Media providers and their features
|
||||
|
||||
@@ -8,7 +8,7 @@ get:
|
||||
description: Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
operationId: getTokenByPinId
|
||||
parameters:
|
||||
- $ref: "../../parameters/ClientIdentifier.yaml"
|
||||
- $ref: "../../parameters/plex/x-plex-identifier.yaml"
|
||||
- name: pinID
|
||||
description: The PinID to retrieve an access token for
|
||||
in: path
|
||||
|
||||
@@ -18,8 +18,8 @@ post:
|
||||
type: boolean
|
||||
default: false
|
||||
required: false
|
||||
- $ref: ../../parameters/ClientIdentifier.yaml
|
||||
- $ref: ../../parameters/ClientProduct.yaml
|
||||
- $ref: ../../parameters/plex/x-plex-identifier.yaml
|
||||
- $ref: ../../parameters/plex/x-plex-product.yaml
|
||||
responses:
|
||||
'200':
|
||||
description: Requests a new pin id used in the authentication flow
|
||||
|
||||
@@ -8,7 +8,7 @@ get:
|
||||
description: Get Resources
|
||||
operationId: getResources
|
||||
parameters:
|
||||
- $ref: "../../parameters/ClientIdentifier.yaml"
|
||||
- $ref: "../../parameters/plex/x-plex-identifier.yaml"
|
||||
- name: includeHttps
|
||||
in: query
|
||||
description: Include Https entries in the results
|
||||
|
||||
@@ -7,7 +7,7 @@ get:
|
||||
description: Get the User data from the provided X-Plex-Token
|
||||
operationId: getUserDetails
|
||||
parameters:
|
||||
- $ref: '../../parameters/plex-token.yaml'
|
||||
- $ref: '../../parameters/plex/x-plex-token.yaml'
|
||||
- $ref: "../../parameters/accept-application-json.yaml"
|
||||
responses:
|
||||
'200':
|
||||
|
||||
@@ -8,7 +8,7 @@ post:
|
||||
description: Sign in user with username and password and return user data with Plex authentication token
|
||||
operationId: post-users-sign-in-data
|
||||
parameters:
|
||||
- $ref: "../../parameters/ClientIdentifier.yaml"
|
||||
- $ref: "../../parameters/plex/x-plex-identifier.yaml"
|
||||
requestBody:
|
||||
content:
|
||||
application/x-www-form-urlencoded:
|
||||
|
||||
@@ -27,7 +27,7 @@ servers:
|
||||
|
||||
x-speakeasy-globals:
|
||||
parameters:
|
||||
- $ref: "./parameters/ClientIdentifier.yaml"
|
||||
- $ref: "./parameters/plex/x-plex-identifier.yaml"
|
||||
|
||||
security:
|
||||
- accessToken: []
|
||||
|
||||
Reference in New Issue
Block a user