mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 20:47:49 +00:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5883791d10 | ||
|
|
548ce2564d | ||
|
|
46c35ae5e3 | ||
|
|
d15c54d86f | ||
|
|
f517fffa89 | ||
|
|
2309d5a37f | ||
|
|
d71b1b96ea | ||
|
|
24948e0718 | ||
|
|
39a5a0dfb6 | ||
|
|
92730cbe24 | ||
|
|
591cddc929 | ||
|
|
6a6c770319 | ||
|
|
d141934f09 | ||
|
|
61d12eaf66 |
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9
|
id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9
|
||||||
management:
|
management:
|
||||||
docChecksum: a6fee1797b2da7ccbaf7743772a40b56
|
docChecksum: 5bf578a672589649d8ed83c3927c50a6
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.394.0
|
speakeasyVersion: 1.399.2
|
||||||
generationVersion: 2.413.0
|
generationVersion: 2.416.6
|
||||||
releaseVersion: 0.6.1
|
releaseVersion: 0.6.11
|
||||||
configChecksum: db104482bbf604a069965c101252b879
|
configChecksum: 8310a6a4fe6e2e061b86f130456df5af
|
||||||
repoURL: https://github.com/LukeHagar/plexcsharp.git
|
repoURL: https://github.com/LukeHagar/plexcsharp.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
published: true
|
published: true
|
||||||
@@ -14,7 +14,7 @@ features:
|
|||||||
csharp:
|
csharp:
|
||||||
additionalDependencies: 0.1.0
|
additionalDependencies: 0.1.0
|
||||||
constsAndDefaults: 0.0.1
|
constsAndDefaults: 0.0.1
|
||||||
core: 3.9.17
|
core: 3.9.19
|
||||||
deprecations: 2.81.2
|
deprecations: 2.81.2
|
||||||
errors: 0.0.2
|
errors: 0.0.2
|
||||||
flattening: 2.81.2
|
flattening: 2.81.2
|
||||||
@@ -1749,7 +1749,7 @@ examples:
|
|||||||
speakeasy-default-get-geo-data:
|
speakeasy-default-get-geo-data:
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}
|
application/json: {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": []}
|
application/json: {"errors": []}
|
||||||
"400":
|
"400":
|
||||||
@@ -1782,12 +1782,17 @@ examples:
|
|||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
query:
|
query:
|
||||||
X-Plex-Product: "Plex Web"
|
X-Plex-Product: Plex Web
|
||||||
|
X-Plex-Device: Linux
|
||||||
|
X-Plex-Version: 4.133.0
|
||||||
|
X-Plex-Platform: Chrome
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
|
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
|
||||||
"400":
|
"400":
|
||||||
application/json: {"errors": []}
|
application/json: {"errors": []}
|
||||||
|
"201":
|
||||||
|
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
|
||||||
getTokenByPinId:
|
getTokenByPinId:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
csharp:
|
csharp:
|
||||||
version: 0.6.1
|
version: 0.6.11
|
||||||
additionalDependencies: []
|
additionalDependencies: []
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.394.0
|
speakeasyVersion: 1.399.2
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -14,24 +14,36 @@ sources:
|
|||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- main
|
||||||
|
plexapi:
|
||||||
|
sourceNamespace: plexapi
|
||||||
|
sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc
|
||||||
|
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- main
|
||||||
targets:
|
targets:
|
||||||
plexcsharp:
|
plexcsharp:
|
||||||
source: plex-api
|
source: plexapi
|
||||||
sourceNamespace: plex-api
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:289c5a73965c8fa779f32919d1353d0d275163982c0a0f5525ef4146c462a486
|
sourceRevisionDigest: sha256:327e4a83099f910e042784ecc571fcbc4c9a6d8ba169b4ba181afb890a9936cc
|
||||||
sourceBlobDigest: sha256:f7e2709f52370dff16c1851a7a4e44a89f2e978e9cae335bffc10625950b3bd9
|
sourceBlobDigest: sha256:a652fa39754f0c22a1454f628fe84983b34662ee8a153a3461d50b833f8bc5c2
|
||||||
outLocation: /github/workspace/repo
|
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
||||||
|
codeSamplesRevisionDigest: sha256:38727400da12a8aad5060ffb4f689fd6953c723a61591af0436d5f6a782796b1
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
sources:
|
sources:
|
||||||
plex-api:
|
plexapi:
|
||||||
inputs:
|
inputs:
|
||||||
- location: registry.speakeasyapi.dev/lukehagar/lukehagar/plex-api:main
|
- location: registry.speakeasyapi.dev/plexapi/plexapi/plexapi:main
|
||||||
targets:
|
targets:
|
||||||
plexcsharp:
|
plexcsharp:
|
||||||
target: csharp
|
target: csharp
|
||||||
source: plex-api
|
source: plexapi
|
||||||
publish:
|
publish:
|
||||||
nuget:
|
nuget:
|
||||||
apiKey: $nuget_api_key
|
apiKey: $nuget_api_key
|
||||||
|
codeSamples:
|
||||||
|
output: codeSamples.yaml
|
||||||
|
registry:
|
||||||
|
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-csharp-plexcsharp
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
sources:
|
sources:
|
||||||
plex-api:
|
plexapi:
|
||||||
inputs:
|
inputs:
|
||||||
- location: registry.speakeasyapi.dev/lukehagar/lukehagar/plex-api:main
|
- location: registry.speakeasyapi.dev/plexapi/plexapi/plexapi:main
|
||||||
targets:
|
targets:
|
||||||
plexcsharp:
|
plexcsharp:
|
||||||
target: csharp
|
target: csharp
|
||||||
source: plex-api
|
source: plexapi
|
||||||
publish:
|
publish:
|
||||||
nuget:
|
nuget:
|
||||||
apiKey: $nuget_api_key
|
apiKey: $nuget_api_key
|
||||||
|
codeSamples:
|
||||||
|
output: codeSamples.yaml
|
||||||
|
registry:
|
||||||
|
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-csharp-plexcsharp
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
/// Sign in user with username and password and return user data with Plex authentication token
|
/// Sign in user with username and password and return user data with Plex authentication token
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task<PostUsersSignInDataResponse> PostUsersSignInDataAsync(string? xPlexClientIdentifier = null, PostUsersSignInDataRequestBody? requestBody = null, string? serverUrl = null);
|
Task<PostUsersSignInDataResponse> PostUsersSignInDataAsync(string? clientID = null, PostUsersSignInDataRequestBody? requestBody = null, string? serverUrl = null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -95,10 +95,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
};
|
};
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -418,14 +418,14 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<PostUsersSignInDataResponse> PostUsersSignInDataAsync(string? xPlexClientIdentifier = null, PostUsersSignInDataRequestBody? requestBody = null, string? serverUrl = null)
|
public async Task<PostUsersSignInDataResponse> PostUsersSignInDataAsync(string? clientID = null, PostUsersSignInDataRequestBody? requestBody = null, string? serverUrl = null)
|
||||||
{
|
{
|
||||||
var request = new PostUsersSignInDataRequest()
|
var request = new PostUsersSignInDataRequest()
|
||||||
{
|
{
|
||||||
XPlexClientIdentifier = xPlexClientIdentifier,
|
ClientID = clientID,
|
||||||
RequestBody = requestBody,
|
RequestBody = requestBody,
|
||||||
};
|
};
|
||||||
request.XPlexClientIdentifier ??= SDKConfiguration.XPlexClientIdentifier;
|
request.ClientID ??= SDKConfiguration.ClientID;
|
||||||
|
|
||||||
string baseUrl = Utilities.TemplateUrl(PostUsersSignInDataServerList[0], new Dictionary<string, string>(){
|
string baseUrl = Utilities.TemplateUrl(PostUsersSignInDataServerList[0], new Dictionary<string, string>(){
|
||||||
});
|
});
|
||||||
@@ -484,7 +484,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataUserPlexAccount>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataUserPlexAccount>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new PostUsersSignInDataResponse()
|
var response = new PostUsersSignInDataResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -503,7 +503,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -516,7 +516,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,10 +101,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
|
|||||||
@@ -63,10 +63,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -137,7 +137,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetGlobalHubsResponse()
|
var response = new GetGlobalHubsResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -156,7 +156,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -169,7 +169,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -241,10 +241,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -414,7 +414,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetRecentlyAddedResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetRecentlyAddedResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetRecentlyAddedResponse()
|
var response = new GetRecentlyAddedResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -433,7 +433,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetRecentlyAddedBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetRecentlyAddedBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -446,7 +446,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetRecentlyAddedUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetRecentlyAddedUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,10 +94,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>true</IsPackable>
|
<IsPackable>true</IsPackable>
|
||||||
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
||||||
<Version>0.6.1</Version>
|
<Version>0.6.11</Version>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Authors>LukeHagar</Authors>
|
<Authors>LukeHagar</Authors>
|
||||||
<Copyright>Copyright (c) LukeHagar 2024</Copyright>
|
<Copyright>Copyright (c) LukeHagar 2024</Copyright>
|
||||||
|
|||||||
@@ -90,10 +90,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// The postal code of the location.
|
/// The postal code of the location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("postal_code")]
|
[JsonProperty("postal_code")]
|
||||||
public long PostalCode { get; set; } = default!;
|
public string PostalCode { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates if the country has privacy restrictions.
|
/// Indicates if the country has privacy restrictions.
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// The postal code of the location.
|
/// The postal code of the location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("postal_code")]
|
[JsonProperty("postal_code")]
|
||||||
public long PostalCode { get; set; } = default!;
|
public string PostalCode { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates if the country has privacy restrictions.
|
/// Indicates if the country has privacy restrictions.
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public DateTime ExpiresAt { get; set; } = default!;
|
public DateTime ExpiresAt { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("authToken")]
|
[JsonProperty("authToken")]
|
||||||
public object? AuthToken { get; set; } = null;
|
public string? AuthToken { get; set; } = null;
|
||||||
|
|
||||||
[JsonProperty("newRegistration")]
|
[JsonProperty("newRegistration")]
|
||||||
public object? NewRegistration { get; set; } = null;
|
public object? NewRegistration { get; set; } = null;
|
||||||
|
|||||||
@@ -36,9 +36,18 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")]
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")]
|
||||||
public string? XPlexClientIdentifier { get; set; }
|
public string? ClientID { get; set; }
|
||||||
|
|
||||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product")]
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product")]
|
||||||
public string? XPlexProduct { get; set; }
|
public string? ClientName { get; set; }
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Device")]
|
||||||
|
public string? DeviceName { get; set; }
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Version")]
|
||||||
|
public string? ClientVersion { get; set; }
|
||||||
|
|
||||||
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Platform")]
|
||||||
|
public string? ClientPlatform { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")]
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")]
|
||||||
public string? XPlexClientIdentifier { get; set; }
|
public string? ClientID { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Include Https entries in the results
|
/// Include Https entries in the results
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
public DateTime ExpiresAt { get; set; } = default!;
|
public DateTime ExpiresAt { get; set; } = default!;
|
||||||
|
|
||||||
[JsonProperty("authToken")]
|
[JsonProperty("authToken")]
|
||||||
public object? AuthToken { get; set; } = null;
|
public string? AuthToken { get; set; } = null;
|
||||||
|
|
||||||
[JsonProperty("newRegistration")]
|
[JsonProperty("newRegistration")]
|
||||||
public object? NewRegistration { get; set; } = null;
|
public object? NewRegistration { get; set; } = null;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// The postal code of the location.
|
/// The postal code of the location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("postal_code")]
|
[JsonProperty("postal_code")]
|
||||||
public long PostalCode { get; set; } = default!;
|
public string PostalCode { get; set; } = default!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates if the country has privacy restrictions.
|
/// Indicates if the country has privacy restrictions.
|
||||||
|
|||||||
@@ -30,6 +30,6 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")]
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")]
|
||||||
public string? XPlexClientIdentifier { get; set; }
|
public string? ClientID { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")]
|
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")]
|
||||||
public string? XPlexClientIdentifier { get; set; }
|
public string? ClientID { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Login credentials
|
/// Login credentials
|
||||||
|
|||||||
@@ -146,10 +146,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -324,7 +324,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetPlaylistsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetPlaylistsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetPlaylistsResponse()
|
var response = new GetPlaylistsResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -343,7 +343,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetPlaylistsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetPlaylistsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -356,7 +356,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetPlaylistsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetPlaylistsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,16 +75,16 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
/// Get Plex server access tokens and server connections
|
/// Get Plex server access tokens and server connections
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task<GetServerResourcesResponse> GetServerResourcesAsync(string? xPlexClientIdentifier = null, IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? serverUrl = null);
|
Task<GetServerResourcesResponse> GetServerResourcesAsync(string? clientID = null, IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? serverUrl = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get a Pin
|
/// Get a Pin
|
||||||
///
|
///
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Retrieve a Pin from Plex.tv for authentication flows
|
/// Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task<GetPinResponse> GetPinAsync(bool? strong = null, string? xPlexClientIdentifier = null, string? xPlexProduct = null, string? serverUrl = null);
|
Task<GetPinResponse> GetPinAsync(GetPinRequest? request = null, string? serverUrl = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get Access Token by PinId
|
/// Get Access Token by PinId
|
||||||
@@ -93,7 +93,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
/// Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
/// Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task<GetTokenByPinIdResponse> GetTokenByPinIdAsync(long pinID, string? xPlexClientIdentifier = null, string? serverUrl = null);
|
Task<GetTokenByPinIdResponse> GetTokenByPinIdAsync(long pinID, string? clientID = null, string? serverUrl = null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -143,10 +143,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
};
|
};
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -589,16 +589,16 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetServerResourcesResponse> GetServerResourcesAsync(string? xPlexClientIdentifier = null, IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? serverUrl = null)
|
public async Task<GetServerResourcesResponse> GetServerResourcesAsync(string? clientID = null, IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? serverUrl = null)
|
||||||
{
|
{
|
||||||
var request = new GetServerResourcesRequest()
|
var request = new GetServerResourcesRequest()
|
||||||
{
|
{
|
||||||
XPlexClientIdentifier = xPlexClientIdentifier,
|
ClientID = clientID,
|
||||||
IncludeHttps = includeHttps,
|
IncludeHttps = includeHttps,
|
||||||
IncludeRelay = includeRelay,
|
IncludeRelay = includeRelay,
|
||||||
IncludeIPv6 = includeIPv6,
|
IncludeIPv6 = includeIPv6,
|
||||||
};
|
};
|
||||||
request.XPlexClientIdentifier ??= SDKConfiguration.XPlexClientIdentifier;
|
request.ClientID ??= SDKConfiguration.ClientID;
|
||||||
|
|
||||||
string baseUrl = Utilities.TemplateUrl(GetServerResourcesServerList[0], new Dictionary<string, string>(){
|
string baseUrl = Utilities.TemplateUrl(GetServerResourcesServerList[0], new Dictionary<string, string>(){
|
||||||
});
|
});
|
||||||
@@ -656,7 +656,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<List<PlexDevice>>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<List<PlexDevice>>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetServerResourcesResponse()
|
var response = new GetServerResourcesResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -675,7 +675,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetServerResourcesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetServerResourcesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -688,7 +688,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetServerResourcesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetServerResourcesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -707,15 +707,13 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetPinResponse> GetPinAsync(bool? strong = null, string? xPlexClientIdentifier = null, string? xPlexProduct = null, string? serverUrl = null)
|
public async Task<GetPinResponse> GetPinAsync(GetPinRequest? request = null, string? serverUrl = null)
|
||||||
{
|
{
|
||||||
var request = new GetPinRequest()
|
request.ClientID ??= SDKConfiguration.ClientID;
|
||||||
{
|
request.ClientName ??= SDKConfiguration.ClientName;
|
||||||
Strong = strong,
|
request.ClientVersion ??= SDKConfiguration.ClientVersion;
|
||||||
XPlexClientIdentifier = xPlexClientIdentifier,
|
request.ClientPlatform ??= SDKConfiguration.ClientPlatform;
|
||||||
XPlexProduct = xPlexProduct,
|
request.DeviceName ??= SDKConfiguration.DeviceName;
|
||||||
};
|
|
||||||
request.XPlexClientIdentifier ??= SDKConfiguration.XPlexClientIdentifier;
|
|
||||||
|
|
||||||
string baseUrl = Utilities.TemplateUrl(GetPinServerList[0], new Dictionary<string, string>(){
|
string baseUrl = Utilities.TemplateUrl(GetPinServerList[0], new Dictionary<string, string>(){
|
||||||
});
|
});
|
||||||
@@ -764,11 +762,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
|
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
|
||||||
int responseStatusCode = (int)httpResponse.StatusCode;
|
int responseStatusCode = (int)httpResponse.StatusCode;
|
||||||
if(responseStatusCode == 200)
|
if(responseStatusCode == 201)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetPinAuthPinContainer>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetPinAuthPinContainer>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetPinResponse()
|
var response = new GetPinResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -787,7 +785,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetPinBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetPinBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -806,14 +804,14 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetTokenByPinIdResponse> GetTokenByPinIdAsync(long pinID, string? xPlexClientIdentifier = null, string? serverUrl = null)
|
public async Task<GetTokenByPinIdResponse> GetTokenByPinIdAsync(long pinID, string? clientID = null, string? serverUrl = null)
|
||||||
{
|
{
|
||||||
var request = new GetTokenByPinIdRequest()
|
var request = new GetTokenByPinIdRequest()
|
||||||
{
|
{
|
||||||
PinID = pinID,
|
PinID = pinID,
|
||||||
XPlexClientIdentifier = xPlexClientIdentifier,
|
ClientID = clientID,
|
||||||
};
|
};
|
||||||
request.XPlexClientIdentifier ??= SDKConfiguration.XPlexClientIdentifier;
|
request.ClientID ??= SDKConfiguration.ClientID;
|
||||||
|
|
||||||
string baseUrl = Utilities.TemplateUrl(GetTokenByPinIdServerList[0], new Dictionary<string, string>(){
|
string baseUrl = Utilities.TemplateUrl(GetTokenByPinIdServerList[0], new Dictionary<string, string>(){
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -238,7 +238,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
public string ServerUrl = "";
|
public string ServerUrl = "";
|
||||||
public int ServerIndex = 0;
|
public int ServerIndex = 0;
|
||||||
public List<Dictionary<string, string>> ServerDefaults = new List<Dictionary<string, string>>();
|
public List<Dictionary<string, string>> ServerDefaults = new List<Dictionary<string, string>>();
|
||||||
public string? XPlexClientIdentifier;
|
public string? ClientID;
|
||||||
|
public string? ClientName;
|
||||||
|
public string? ClientVersion;
|
||||||
|
public string? ClientPlatform;
|
||||||
|
public string? DeviceName;
|
||||||
public SDKHooks Hooks = new SDKHooks();
|
public SDKHooks Hooks = new SDKHooks();
|
||||||
public RetryConfig? RetryConfig = null;
|
public RetryConfig? RetryConfig = null;
|
||||||
|
|
||||||
@@ -271,10 +275,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
|
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private int _serverIndex = 0;
|
private int _serverIndex = 0;
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
@@ -296,7 +300,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
public ISessions Sessions { get; private set; }
|
public ISessions Sessions { get; private set; }
|
||||||
public IUpdater Updater { get; private set; }
|
public IUpdater Updater { get; private set; }
|
||||||
|
|
||||||
public PlexAPI(string? accessToken = null, Func<string>? accessTokenSource = null, string? xPlexClientIdentifier = null, int? serverIndex = null, ServerProtocol? protocol = null, string? ip = null, string? port = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null)
|
public PlexAPI(string? accessToken = null, Func<string>? accessTokenSource = null, string? clientID = null, string? clientName = null, string? clientVersion = null, string? clientPlatform = null, string? deviceName = null, int? serverIndex = null, ServerProtocol? protocol = null, string? ip = null, string? port = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null)
|
||||||
{
|
{
|
||||||
if (serverIndex != null)
|
if (serverIndex != null)
|
||||||
{
|
{
|
||||||
@@ -338,7 +342,11 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
|
|
||||||
SDKConfiguration = new SDKConfig()
|
SDKConfiguration = new SDKConfig()
|
||||||
{
|
{
|
||||||
XPlexClientIdentifier = xPlexClientIdentifier,
|
ClientID = clientID,
|
||||||
|
ClientName = clientName,
|
||||||
|
ClientVersion = clientVersion,
|
||||||
|
ClientPlatform = clientPlatform,
|
||||||
|
DeviceName = deviceName,
|
||||||
ServerDefaults = serverDefaults,
|
ServerDefaults = serverDefaults,
|
||||||
ServerIndex = _serverIndex,
|
ServerIndex = _serverIndex,
|
||||||
ServerUrl = _serverUrl,
|
ServerUrl = _serverUrl,
|
||||||
|
|||||||
@@ -87,10 +87,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
|
|||||||
@@ -126,10 +126,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
|
|||||||
@@ -80,10 +80,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -261,7 +261,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetSessionHistoryResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetSessionHistoryResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetSessionHistoryResponse()
|
var response = new GetSessionHistoryResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -280,7 +280,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetSessionHistoryBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetSessionHistoryBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -293,7 +293,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetSessionHistoryUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetSessionHistoryUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,10 +71,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -144,7 +144,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetStatisticsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetStatisticsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetStatisticsResponse()
|
var response = new GetStatisticsResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -163,7 +163,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetStatisticsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetStatisticsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -176,7 +176,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetStatisticsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetStatisticsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -252,7 +252,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetResourcesStatisticsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetResourcesStatisticsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetResourcesStatisticsResponse()
|
var response = new GetResourcesStatisticsResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -271,7 +271,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetResourcesStatisticsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetResourcesStatisticsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -284,7 +284,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetResourcesStatisticsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetResourcesStatisticsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -360,7 +360,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetBandwidthStatisticsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetBandwidthStatisticsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
var response = new GetBandwidthStatisticsResponse()
|
var response = new GetBandwidthStatisticsResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -379,7 +379,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetBandwidthStatisticsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetBandwidthStatisticsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -392,7 +392,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetBandwidthStatisticsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<GetBandwidthStatisticsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
@@ -261,7 +261,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<CheckForUpdatesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<CheckForUpdatesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -274,7 +274,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<CheckForUpdatesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<CheckForUpdatesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -360,7 +360,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<ApplyUpdatesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<ApplyUpdatesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
@@ -373,7 +373,7 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<ApplyUpdatesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var obj = ResponseBodyDeserializer.Deserialize<ApplyUpdatesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
||||||
obj!.RawResponse = httpResponse;
|
obj!.RawResponse = httpResponse;
|
||||||
throw obj!;
|
throw obj!;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,10 +62,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
|
|||||||
@@ -59,10 +59,10 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
};
|
};
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.6.1";
|
private const string _sdkVersion = "0.6.11";
|
||||||
private const string _sdkGenVersion = "2.413.0";
|
private const string _sdkGenVersion = "2.416.6";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
private const string _userAgent = "speakeasy-sdk/csharp 0.6.1 2.413.0 0.0.3 LukeHagar.PlexAPI.SDK";
|
private const string _userAgent = "speakeasy-sdk/csharp 0.6.11 2.416.6 0.0.3 LukeHagar.PlexAPI.SDK";
|
||||||
private string _serverUrl = "";
|
private string _serverUrl = "";
|
||||||
private ISpeakeasyHttpClient _client;
|
private ISpeakeasyHttpClient _client;
|
||||||
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
private Func<LukeHagar.PlexAPI.SDK.Models.Components.Security>? _securitySource;
|
||||||
|
|||||||
44
NUGET.md
44
NUGET.md
@@ -12,7 +12,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
||||||
@@ -26,21 +30,25 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
|||||||
|
|
||||||
## Global Parameters
|
## Global Parameters
|
||||||
|
|
||||||
A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
|
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
|
||||||
|
|
||||||
For example, you can set `X-Plex-Client-Identifier` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
||||||
|
|
||||||
|
|
||||||
### Available Globals
|
### Available Globals
|
||||||
|
|
||||||
The following global parameter is available.
|
The following global parameters are available.
|
||||||
|
|
||||||
| Name | Type | Required | Description |
|
| Name | Type | Required | Description |
|
||||||
| ---- | ---- |:--------:| ----------- |
|
| ---- | ---- |:--------:| ----------- |
|
||||||
| xPlexClientIdentifier | string | | The unique identifier for the client application
|
| clientID | string | | The unique identifier for the client application
|
||||||
This is used to track the client application and its usage
|
This is used to track the client application and its usage
|
||||||
(UUID, serial number, or other number unique per device)
|
(UUID, serial number, or other number unique per device)
|
||||||
|
|
|
|
||||||
|
| clientName | string | | The ClientName parameter. |
|
||||||
|
| clientVersion | string | | The ClientVersion parameter. |
|
||||||
|
| clientPlatform | string | | The ClientPlatform parameter. |
|
||||||
|
| deviceName | string | | The DeviceName parameter. |
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@@ -52,11 +60,15 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetServerResourcesAsync(
|
var res = await sdk.Plex.GetServerResourcesAsync(
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40",
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.One,
|
includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.One,
|
||||||
includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.One,
|
includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.One,
|
||||||
includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.One
|
includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.One
|
||||||
@@ -87,7 +99,11 @@ using LukeHagar.PlexAPI.SDK.Models.Errors;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -148,7 +164,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2/");
|
var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2/");
|
||||||
@@ -175,7 +195,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
||||||
|
|||||||
156
README.md
156
README.md
@@ -36,7 +36,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
||||||
@@ -48,36 +52,21 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
|||||||
<!-- Start Available Resources and Operations [operations] -->
|
<!-- Start Available Resources and Operations [operations] -->
|
||||||
## Available Resources and Operations
|
## Available Resources and Operations
|
||||||
|
|
||||||
### [Server](docs/sdks/server/README.md)
|
<details open>
|
||||||
|
<summary>Available methods</summary>
|
||||||
* [GetServerCapabilities](docs/sdks/server/README.md#getservercapabilities) - Get Server Capabilities
|
|
||||||
* [GetServerPreferences](docs/sdks/server/README.md#getserverpreferences) - Get Server Preferences
|
|
||||||
* [GetAvailableClients](docs/sdks/server/README.md#getavailableclients) - Get Available Clients
|
|
||||||
* [GetDevices](docs/sdks/server/README.md#getdevices) - Get Devices
|
|
||||||
* [GetServerIdentity](docs/sdks/server/README.md#getserveridentity) - Get Server Identity
|
|
||||||
* [GetMyPlexAccount](docs/sdks/server/README.md#getmyplexaccount) - Get MyPlex Account
|
|
||||||
* [GetResizedPhoto](docs/sdks/server/README.md#getresizedphoto) - Get a Resized Photo
|
|
||||||
* [GetMediaProviders](docs/sdks/server/README.md#getmediaproviders) - Get Media Providers
|
|
||||||
* [GetServerList](docs/sdks/server/README.md#getserverlist) - Get Server List
|
|
||||||
|
|
||||||
### [Media](docs/sdks/media/README.md)
|
|
||||||
|
|
||||||
* [MarkPlayed](docs/sdks/media/README.md#markplayed) - Mark Media Played
|
|
||||||
* [MarkUnplayed](docs/sdks/media/README.md#markunplayed) - Mark Media Unplayed
|
|
||||||
* [UpdatePlayProgress](docs/sdks/media/README.md#updateplayprogress) - Update Media Play Progress
|
|
||||||
* [GetBannerImage](docs/sdks/media/README.md#getbannerimage) - Get Banner Image
|
|
||||||
* [GetThumbImage](docs/sdks/media/README.md#getthumbimage) - Get Thumb Image
|
|
||||||
|
|
||||||
### [Video](docs/sdks/video/README.md)
|
|
||||||
|
|
||||||
* [GetTimeline](docs/sdks/video/README.md#gettimeline) - Get the timeline for a media item
|
|
||||||
* [StartUniversalTranscode](docs/sdks/video/README.md#startuniversaltranscode) - Start Universal Transcode
|
|
||||||
|
|
||||||
### [Activities](docs/sdks/activities/README.md)
|
### [Activities](docs/sdks/activities/README.md)
|
||||||
|
|
||||||
* [GetServerActivities](docs/sdks/activities/README.md#getserveractivities) - Get Server Activities
|
* [GetServerActivities](docs/sdks/activities/README.md#getserveractivities) - Get Server Activities
|
||||||
* [CancelServerActivities](docs/sdks/activities/README.md#cancelserveractivities) - Cancel Server Activities
|
* [CancelServerActivities](docs/sdks/activities/README.md#cancelserveractivities) - Cancel Server Activities
|
||||||
|
|
||||||
|
### [Authentication](docs/sdks/authentication/README.md)
|
||||||
|
|
||||||
|
* [GetTransientToken](docs/sdks/authentication/README.md#gettransienttoken) - Get a Transient Token
|
||||||
|
* [GetSourceConnectionInformation](docs/sdks/authentication/README.md#getsourceconnectioninformation) - Get Source Connection Information
|
||||||
|
* [GetTokenDetails](docs/sdks/authentication/README.md#gettokendetails) - Get Token Details
|
||||||
|
* [PostUsersSignInData](docs/sdks/authentication/README.md#postuserssignindata) - Get User Sign In Data
|
||||||
|
|
||||||
### [Butler](docs/sdks/butler/README.md)
|
### [Butler](docs/sdks/butler/README.md)
|
||||||
|
|
||||||
* [GetButlerTasks](docs/sdks/butler/README.md#getbutlertasks) - Get Butler tasks
|
* [GetButlerTasks](docs/sdks/butler/README.md#getbutlertasks) - Get Butler tasks
|
||||||
@@ -86,27 +75,11 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
|||||||
* [StartTask](docs/sdks/butler/README.md#starttask) - Start a single Butler task
|
* [StartTask](docs/sdks/butler/README.md#starttask) - Start a single Butler task
|
||||||
* [StopTask](docs/sdks/butler/README.md#stoptask) - Stop a single Butler task
|
* [StopTask](docs/sdks/butler/README.md#stoptask) - Stop a single Butler task
|
||||||
|
|
||||||
### [Plex](docs/sdks/plex/README.md)
|
|
||||||
|
|
||||||
* [GetCompanionsData](docs/sdks/plex/README.md#getcompanionsdata) - Get Companions Data
|
|
||||||
* [GetUserFriends](docs/sdks/plex/README.md#getuserfriends) - Get list of friends of the user logged in
|
|
||||||
* [GetGeoData](docs/sdks/plex/README.md#getgeodata) - Get Geo Data
|
|
||||||
* [GetHomeData](docs/sdks/plex/README.md#gethomedata) - Get Plex Home Data
|
|
||||||
* [GetServerResources](docs/sdks/plex/README.md#getserverresources) - Get Server Resources
|
|
||||||
* [GetPin](docs/sdks/plex/README.md#getpin) - Get a Pin
|
|
||||||
* [GetTokenByPinId](docs/sdks/plex/README.md#gettokenbypinid) - Get Access Token by PinId
|
|
||||||
|
|
||||||
### [Hubs](docs/sdks/hubs/README.md)
|
### [Hubs](docs/sdks/hubs/README.md)
|
||||||
|
|
||||||
* [GetGlobalHubs](docs/sdks/hubs/README.md#getglobalhubs) - Get Global Hubs
|
* [GetGlobalHubs](docs/sdks/hubs/README.md#getglobalhubs) - Get Global Hubs
|
||||||
* [GetLibraryHubs](docs/sdks/hubs/README.md#getlibraryhubs) - Get library specific hubs
|
* [GetLibraryHubs](docs/sdks/hubs/README.md#getlibraryhubs) - Get library specific hubs
|
||||||
|
|
||||||
### [Search](docs/sdks/search/README.md)
|
|
||||||
|
|
||||||
* [PerformSearch](docs/sdks/search/README.md#performsearch) - Perform a search
|
|
||||||
* [PerformVoiceSearch](docs/sdks/search/README.md#performvoicesearch) - Perform a voice search
|
|
||||||
* [GetSearchResults](docs/sdks/search/README.md#getsearchresults) - Get Search Results
|
|
||||||
|
|
||||||
### [Library](docs/sdks/library/README.md)
|
### [Library](docs/sdks/library/README.md)
|
||||||
|
|
||||||
* [GetFileHash](docs/sdks/library/README.md#getfilehash) - Get Hash Value
|
* [GetFileHash](docs/sdks/library/README.md#getfilehash) - Get Hash Value
|
||||||
@@ -122,16 +95,20 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
|||||||
* [GetTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
|
* [GetTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
|
||||||
* [GetOnDeck](docs/sdks/library/README.md#getondeck) - Get On Deck
|
* [GetOnDeck](docs/sdks/library/README.md#getondeck) - Get On Deck
|
||||||
|
|
||||||
### [Watchlist](docs/sdks/watchlist/README.md)
|
|
||||||
|
|
||||||
* [GetWatchList](docs/sdks/watchlist/README.md#getwatchlist) - Get User Watchlist
|
|
||||||
|
|
||||||
### [Log](docs/sdks/log/README.md)
|
### [Log](docs/sdks/log/README.md)
|
||||||
|
|
||||||
* [LogLine](docs/sdks/log/README.md#logline) - Logging a single line message.
|
* [LogLine](docs/sdks/log/README.md#logline) - Logging a single line message.
|
||||||
* [LogMultiLine](docs/sdks/log/README.md#logmultiline) - Logging a multi-line message
|
* [LogMultiLine](docs/sdks/log/README.md#logmultiline) - Logging a multi-line message
|
||||||
* [EnablePaperTrail](docs/sdks/log/README.md#enablepapertrail) - Enabling Papertrail
|
* [EnablePaperTrail](docs/sdks/log/README.md#enablepapertrail) - Enabling Papertrail
|
||||||
|
|
||||||
|
### [Media](docs/sdks/media/README.md)
|
||||||
|
|
||||||
|
* [MarkPlayed](docs/sdks/media/README.md#markplayed) - Mark Media Played
|
||||||
|
* [MarkUnplayed](docs/sdks/media/README.md#markunplayed) - Mark Media Unplayed
|
||||||
|
* [UpdatePlayProgress](docs/sdks/media/README.md#updateplayprogress) - Update Media Play Progress
|
||||||
|
* [GetBannerImage](docs/sdks/media/README.md#getbannerimage) - Get Banner Image
|
||||||
|
* [GetThumbImage](docs/sdks/media/README.md#getthumbimage) - Get Thumb Image
|
||||||
|
|
||||||
### [Playlists](docs/sdks/playlists/README.md)
|
### [Playlists](docs/sdks/playlists/README.md)
|
||||||
|
|
||||||
* [CreatePlaylist](docs/sdks/playlists/README.md#createplaylist) - Create a Playlist
|
* [CreatePlaylist](docs/sdks/playlists/README.md#createplaylist) - Create a Playlist
|
||||||
@@ -144,18 +121,34 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
|||||||
* [AddPlaylistContents](docs/sdks/playlists/README.md#addplaylistcontents) - Adding to a Playlist
|
* [AddPlaylistContents](docs/sdks/playlists/README.md#addplaylistcontents) - Adding to a Playlist
|
||||||
* [UploadPlaylist](docs/sdks/playlists/README.md#uploadplaylist) - Upload Playlist
|
* [UploadPlaylist](docs/sdks/playlists/README.md#uploadplaylist) - Upload Playlist
|
||||||
|
|
||||||
### [Authentication](docs/sdks/authentication/README.md)
|
### [Plex](docs/sdks/plex/README.md)
|
||||||
|
|
||||||
* [GetTransientToken](docs/sdks/authentication/README.md#gettransienttoken) - Get a Transient Token
|
* [GetCompanionsData](docs/sdks/plex/README.md#getcompanionsdata) - Get Companions Data
|
||||||
* [GetSourceConnectionInformation](docs/sdks/authentication/README.md#getsourceconnectioninformation) - Get Source Connection Information
|
* [GetUserFriends](docs/sdks/plex/README.md#getuserfriends) - Get list of friends of the user logged in
|
||||||
* [GetTokenDetails](docs/sdks/authentication/README.md#gettokendetails) - Get Token Details
|
* [GetGeoData](docs/sdks/plex/README.md#getgeodata) - Get Geo Data
|
||||||
* [PostUsersSignInData](docs/sdks/authentication/README.md#postuserssignindata) - Get User Sign In Data
|
* [GetHomeData](docs/sdks/plex/README.md#gethomedata) - Get Plex Home Data
|
||||||
|
* [GetServerResources](docs/sdks/plex/README.md#getserverresources) - Get Server Resources
|
||||||
|
* [GetPin](docs/sdks/plex/README.md#getpin) - Get a Pin
|
||||||
|
* [GetTokenByPinId](docs/sdks/plex/README.md#gettokenbypinid) - Get Access Token by PinId
|
||||||
|
|
||||||
### [Statistics](docs/sdks/statistics/README.md)
|
|
||||||
|
|
||||||
* [GetStatistics](docs/sdks/statistics/README.md#getstatistics) - Get Media Statistics
|
### [Search](docs/sdks/search/README.md)
|
||||||
* [GetResourcesStatistics](docs/sdks/statistics/README.md#getresourcesstatistics) - Get Resources Statistics
|
|
||||||
* [GetBandwidthStatistics](docs/sdks/statistics/README.md#getbandwidthstatistics) - Get Bandwidth Statistics
|
* [PerformSearch](docs/sdks/search/README.md#performsearch) - Perform a search
|
||||||
|
* [PerformVoiceSearch](docs/sdks/search/README.md#performvoicesearch) - Perform a voice search
|
||||||
|
* [GetSearchResults](docs/sdks/search/README.md#getsearchresults) - Get Search Results
|
||||||
|
|
||||||
|
### [Server](docs/sdks/server/README.md)
|
||||||
|
|
||||||
|
* [GetServerCapabilities](docs/sdks/server/README.md#getservercapabilities) - Get Server Capabilities
|
||||||
|
* [GetServerPreferences](docs/sdks/server/README.md#getserverpreferences) - Get Server Preferences
|
||||||
|
* [GetAvailableClients](docs/sdks/server/README.md#getavailableclients) - Get Available Clients
|
||||||
|
* [GetDevices](docs/sdks/server/README.md#getdevices) - Get Devices
|
||||||
|
* [GetServerIdentity](docs/sdks/server/README.md#getserveridentity) - Get Server Identity
|
||||||
|
* [GetMyPlexAccount](docs/sdks/server/README.md#getmyplexaccount) - Get MyPlex Account
|
||||||
|
* [GetResizedPhoto](docs/sdks/server/README.md#getresizedphoto) - Get a Resized Photo
|
||||||
|
* [GetMediaProviders](docs/sdks/server/README.md#getmediaproviders) - Get Media Providers
|
||||||
|
* [GetServerList](docs/sdks/server/README.md#getserverlist) - Get Server List
|
||||||
|
|
||||||
### [Sessions](docs/sdks/sessions/README.md)
|
### [Sessions](docs/sdks/sessions/README.md)
|
||||||
|
|
||||||
@@ -164,11 +157,28 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
|||||||
* [GetTranscodeSessions](docs/sdks/sessions/README.md#gettranscodesessions) - Get Transcode Sessions
|
* [GetTranscodeSessions](docs/sdks/sessions/README.md#gettranscodesessions) - Get Transcode Sessions
|
||||||
* [StopTranscodeSession](docs/sdks/sessions/README.md#stoptranscodesession) - Stop a Transcode Session
|
* [StopTranscodeSession](docs/sdks/sessions/README.md#stoptranscodesession) - Stop a Transcode Session
|
||||||
|
|
||||||
|
### [Statistics](docs/sdks/statistics/README.md)
|
||||||
|
|
||||||
|
* [GetStatistics](docs/sdks/statistics/README.md#getstatistics) - Get Media Statistics
|
||||||
|
* [GetResourcesStatistics](docs/sdks/statistics/README.md#getresourcesstatistics) - Get Resources Statistics
|
||||||
|
* [GetBandwidthStatistics](docs/sdks/statistics/README.md#getbandwidthstatistics) - Get Bandwidth Statistics
|
||||||
|
|
||||||
### [Updater](docs/sdks/updater/README.md)
|
### [Updater](docs/sdks/updater/README.md)
|
||||||
|
|
||||||
* [GetUpdateStatus](docs/sdks/updater/README.md#getupdatestatus) - Querying status of updates
|
* [GetUpdateStatus](docs/sdks/updater/README.md#getupdatestatus) - Querying status of updates
|
||||||
* [CheckForUpdates](docs/sdks/updater/README.md#checkforupdates) - Checking for updates
|
* [CheckForUpdates](docs/sdks/updater/README.md#checkforupdates) - Checking for updates
|
||||||
* [ApplyUpdates](docs/sdks/updater/README.md#applyupdates) - Apply Updates
|
* [ApplyUpdates](docs/sdks/updater/README.md#applyupdates) - Apply Updates
|
||||||
|
|
||||||
|
### [Video](docs/sdks/video/README.md)
|
||||||
|
|
||||||
|
* [GetTimeline](docs/sdks/video/README.md#gettimeline) - Get the timeline for a media item
|
||||||
|
* [StartUniversalTranscode](docs/sdks/video/README.md#startuniversaltranscode) - Start Universal Transcode
|
||||||
|
|
||||||
|
### [Watchlist](docs/sdks/watchlist/README.md)
|
||||||
|
|
||||||
|
* [GetWatchList](docs/sdks/watchlist/README.md#getwatchlist) - Get User Watchlist
|
||||||
|
|
||||||
|
</details>
|
||||||
<!-- End Available Resources and Operations [operations] -->
|
<!-- End Available Resources and Operations [operations] -->
|
||||||
|
|
||||||
<!-- Start Server Selection [server] -->
|
<!-- Start Server Selection [server] -->
|
||||||
@@ -205,7 +215,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2/");
|
var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2/");
|
||||||
@@ -232,7 +246,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
||||||
@@ -246,21 +264,25 @@ var res = await sdk.Server.GetServerCapabilitiesAsync();
|
|||||||
|
|
||||||
## Global Parameters
|
## Global Parameters
|
||||||
|
|
||||||
A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
|
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
|
||||||
|
|
||||||
For example, you can set `X-Plex-Client-Identifier` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `GetServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
|
||||||
|
|
||||||
|
|
||||||
### Available Globals
|
### Available Globals
|
||||||
|
|
||||||
The following global parameter is available.
|
The following global parameters are available.
|
||||||
|
|
||||||
| Name | Type | Required | Description |
|
| Name | Type | Required | Description |
|
||||||
| ---- | ---- |:--------:| ----------- |
|
| ---- | ---- |:--------:| ----------- |
|
||||||
| xPlexClientIdentifier | string | | The unique identifier for the client application
|
| clientID | string | | The unique identifier for the client application
|
||||||
This is used to track the client application and its usage
|
This is used to track the client application and its usage
|
||||||
(UUID, serial number, or other number unique per device)
|
(UUID, serial number, or other number unique per device)
|
||||||
|
|
|
|
||||||
|
| clientName | string | | The ClientName parameter. |
|
||||||
|
| clientVersion | string | | The ClientVersion parameter. |
|
||||||
|
| clientPlatform | string | | The ClientPlatform parameter. |
|
||||||
|
| deviceName | string | | The DeviceName parameter. |
|
||||||
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@@ -272,11 +294,15 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetServerResourcesAsync(
|
var res = await sdk.Plex.GetServerResourcesAsync(
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40",
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.One,
|
includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.One,
|
||||||
includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.One,
|
includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.One,
|
||||||
includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.One
|
includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.One
|
||||||
@@ -307,7 +333,11 @@ using LukeHagar.PlexAPI.SDK.Models.Errors;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
100
RELEASES.md
100
RELEASES.md
@@ -135,3 +135,103 @@ Based on:
|
|||||||
- [csharp v0.6.1] .
|
- [csharp v0.6.1] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NuGet v0.6.1] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.1 - .
|
- [NuGet v0.6.1] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.1 - .
|
||||||
|
|
||||||
|
## 2024-09-16 20:03:57
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.397.3 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.2] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.2] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.2 - .
|
||||||
|
|
||||||
|
## 2024-09-16 20:18:13
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.397.3 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.3] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.3] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.3 - .
|
||||||
|
|
||||||
|
## 2024-09-16 20:43:13
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.397.3 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.4] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.4] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.4 - .
|
||||||
|
|
||||||
|
## 2024-09-16 20:50:37
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.397.3 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.5] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.5] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.5 - .
|
||||||
|
|
||||||
|
## 2024-09-16 20:55:09
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.397.3 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.6] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.6] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.6 - .
|
||||||
|
|
||||||
|
## 2024-09-16 20:59:35
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.397.3 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.7] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.7] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.7 - .
|
||||||
|
|
||||||
|
## 2024-09-16 21:06:16
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.397.3 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.8] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.8] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.8 - .
|
||||||
|
|
||||||
|
## 2024-09-16 21:53:20
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.398.0 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.9] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.9] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.9 - .
|
||||||
|
|
||||||
|
## 2024-09-16 22:52:24
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.398.0 (2.415.8) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.10] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.10] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.10 - .
|
||||||
|
|
||||||
|
## 2024-09-19 00:20:08
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [csharp v0.6.11] .
|
||||||
|
### Releases
|
||||||
|
- [NuGet v0.6.11] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.6.11 - .
|
||||||
6
USAGE.md
6
USAGE.md
@@ -5,7 +5,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
||||||
|
|||||||
1782
codeSamples.yaml
Normal file
1782
codeSamples.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,7 @@ Geo location data
|
|||||||
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
||||||
| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
||||||
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
||||||
| `PostalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 |
|
| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 |
|
||||||
| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
||||||
| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
||||||
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Geo location data
|
|||||||
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
||||||
| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
||||||
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
||||||
| `PostalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 |
|
| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 |
|
||||||
| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
||||||
| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
||||||
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ Requests a new pin id used in the authentication flow
|
|||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Id` | *long* | :heavy_check_mark: | N/A | 308667304 |
|
| `Id` | *long* | :heavy_check_mark: | N/A | 308667304 |
|
||||||
| `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ |
|
| `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ |
|
||||||
| `Product` | *string* | :heavy_check_mark: | N/A | 0 |
|
| `Product` | *string* | :heavy_check_mark: | N/A | Tautulli |
|
||||||
| `Trusted` | *bool* | :heavy_minus_sign: | N/A | |
|
| `Trusted` | *bool* | :heavy_minus_sign: | N/A | |
|
||||||
| `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ |
|
| `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ |
|
||||||
| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | |
|
| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | Tautulli |
|
||||||
| `Location` | [GeoData](../../Models/Requests/GeoData.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
| `Location` | [GeoData](../../Models/Requests/GeoData.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
||||||
| `ExpiresIn` | *long* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
|
| `ExpiresIn` | *long* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
|
||||||
| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
|
| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
|
||||||
| `ExpiresAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
|
| `ExpiresAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
|
||||||
| `AuthToken` | *object* | :heavy_minus_sign: | N/A | |
|
| `AuthToken` | *string* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `NewRegistration` | *object* | :heavy_minus_sign: | N/A | |
|
| `NewRegistration` | *object* | :heavy_minus_sign: | N/A | |
|
||||||
@@ -6,5 +6,8 @@
|
|||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Strong` | *bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
| `Strong` | *bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
||||||
| `XPlexClientIdentifier` | *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 |
|
| `ClientID` | *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 |
|
||||||
| `XPlexProduct` | *string* | :heavy_minus_sign: | N/A | Plex Web |
|
| `ClientName` | *string* | :heavy_minus_sign: | N/A | Plex Web |
|
||||||
|
| `DeviceName` | *string* | :heavy_minus_sign: | N/A | Linux |
|
||||||
|
| `ClientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 |
|
||||||
|
| `ClientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome |
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `XPlexClientIdentifier` | *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 |
|
| `ClientID` | *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 |
|
||||||
| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
||||||
| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
||||||
| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
||||||
@@ -9,13 +9,13 @@ The Pin with a non-null authToken when it has been verified by the user
|
|||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Id` | *long* | :heavy_check_mark: | N/A | 308667304 |
|
| `Id` | *long* | :heavy_check_mark: | N/A | 308667304 |
|
||||||
| `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ |
|
| `Code` | *string* | :heavy_check_mark: | N/A | 7RQZ |
|
||||||
| `Product` | *string* | :heavy_check_mark: | N/A | 0 |
|
| `Product` | *string* | :heavy_check_mark: | N/A | Tautulli |
|
||||||
| `Trusted` | *bool* | :heavy_minus_sign: | N/A | |
|
| `Trusted` | *bool* | :heavy_minus_sign: | N/A | |
|
||||||
| `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ |
|
| `Qr` | *string* | :heavy_check_mark: | N/A | https://plex.tv/api/v2/pins/qr/7RQZ |
|
||||||
| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | |
|
| `ClientIdentifier` | *string* | :heavy_check_mark: | The X-Client-Identifier used in the request | Tautulli |
|
||||||
| `Location` | [GetTokenByPinIdGeoData](../../Models/Requests/GetTokenByPinIdGeoData.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
| `Location` | [GetTokenByPinIdGeoData](../../Models/Requests/GetTokenByPinIdGeoData.md) | :heavy_check_mark: | Geo location data | {<br/>"code": "VI",<br/>"continent_code": "NA",<br/>"country": "United States Virgin Islands",<br/>"city": "Amsterdam",<br/>"european_union_member": true,<br/>"time_zone": "America/St_Thomas",<br/>"postal_code": 802,<br/>"in_privacy_restricted_country": true,<br/>"in_privacy_restricted_region": true,<br/>"subdivisions": "Saint Thomas",<br/>"coordinates": "18.3381, -64.8941"<br/>} |
|
||||||
| `ExpiresIn` | *long* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
|
| `ExpiresIn` | *long* | :heavy_minus_sign: | The number of seconds this pin expires, by default 900 seconds | 876 |
|
||||||
| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
|
| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:03:05Z |
|
||||||
| `ExpiresAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
|
| `ExpiresAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | 2024-07-16T17:18:05Z |
|
||||||
| `AuthToken` | *object* | :heavy_minus_sign: | N/A | |
|
| `AuthToken` | *string* | :heavy_minus_sign: | N/A | gcgzw5rz2xovp84b4vha3a40 |
|
||||||
| `NewRegistration` | *object* | :heavy_minus_sign: | N/A | |
|
| `NewRegistration` | *object* | :heavy_minus_sign: | N/A | |
|
||||||
@@ -13,7 +13,7 @@ Geo location data
|
|||||||
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
| `City` | *string* | :heavy_check_mark: | The name of the city. | Amsterdam |
|
||||||
| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
| `EuropeanUnionMember` | *bool* | :heavy_minus_sign: | Indicates if the country is a member of the European Union. | true |
|
||||||
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
| `TimeZone` | *string* | :heavy_check_mark: | The time zone of the country. | America/St_Thomas |
|
||||||
| `PostalCode` | *long* | :heavy_check_mark: | The postal code of the location. | 802 |
|
| `PostalCode` | *string* | :heavy_check_mark: | The postal code of the location. | 802 |
|
||||||
| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
| `InPrivacyRestrictedCountry` | *bool* | :heavy_minus_sign: | Indicates if the country has privacy restrictions. | true |
|
||||||
| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
| `InPrivacyRestrictedRegion` | *bool* | :heavy_minus_sign: | Indicates if the region has privacy restrictions. | true |
|
||||||
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
| `Subdivisions` | *string* | :heavy_check_mark: | The name of the primary administrative subdivision. | Saint Thomas |
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `PinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
| `PinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||||
| `XPlexClientIdentifier` | *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 |
|
| `ClientID` | *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 |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `XPlexClientIdentifier` | *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 |
|
| `ClientID` | *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 |
|
||||||
| `RequestBody` | [PostUsersSignInDataRequestBody](../../Models/Requests/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
| `RequestBody` | [PostUsersSignInDataRequestBody](../../Models/Requests/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
||||||
@@ -29,7 +29,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Activities.GetServerActivitiesAsync();
|
var res = await sdk.Activities.GetServerActivitiesAsync();
|
||||||
@@ -63,7 +67,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Activities.CancelServerActivitiesAsync(activityUUID: "25b71ed5-0f9d-461c-baa7-d404e9e10d3e");
|
var res = await sdk.Activities.CancelServerActivitiesAsync(activityUUID: "25b71ed5-0f9d-461c-baa7-d404e9e10d3e");
|
||||||
|
|||||||
@@ -27,7 +27,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Authentication.GetTransientTokenAsync(
|
var res = await sdk.Authentication.GetTransientTokenAsync(
|
||||||
@@ -73,7 +77,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Authentication.GetSourceConnectionInformationAsync(source: "server://client-identifier");
|
var res = await sdk.Authentication.GetSourceConnectionInformationAsync(source: "server://client-identifier");
|
||||||
@@ -112,7 +120,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Authentication.GetTokenDetailsAsync();
|
var res = await sdk.Authentication.GetTokenDetailsAsync();
|
||||||
@@ -150,10 +162,16 @@ using LukeHagar.PlexAPI.SDK;
|
|||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||||
|
|
||||||
var sdk = new PlexAPI(xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40");
|
var sdk = new PlexAPI(
|
||||||
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
|
);
|
||||||
|
|
||||||
var res = await sdk.Authentication.PostUsersSignInDataAsync(
|
var res = await sdk.Authentication.PostUsersSignInDataAsync(
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40",
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
requestBody: new PostUsersSignInDataRequestBody() {
|
requestBody: new PostUsersSignInDataRequestBody() {
|
||||||
Login = "username@email.com",
|
Login = "username@email.com",
|
||||||
Password = "password123",
|
Password = "password123",
|
||||||
@@ -168,7 +186,7 @@ var res = await sdk.Authentication.PostUsersSignInDataAsync(
|
|||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `XPlexClientIdentifier` | *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 |
|
| `ClientID` | *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 |
|
||||||
| `RequestBody` | [PostUsersSignInDataRequestBody](../../Models/Requests/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
| `RequestBody` | [PostUsersSignInDataRequestBody](../../Models/Requests/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |
|
||||||
| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Butler.GetButlerTasksAsync();
|
var res = await sdk.Butler.GetButlerTasksAsync();
|
||||||
@@ -64,7 +68,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Butler.StartAllTasksAsync();
|
var res = await sdk.Butler.StartAllTasksAsync();
|
||||||
@@ -98,7 +106,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Butler.StopAllTasksAsync();
|
var res = await sdk.Butler.StopAllTasksAsync();
|
||||||
@@ -137,7 +149,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Butler.StartTaskAsync(taskName: LukeHagar.PlexAPI.SDK.Models.Requests.TaskName.CleanOldBundles);
|
var res = await sdk.Butler.StartTaskAsync(taskName: LukeHagar.PlexAPI.SDK.Models.Requests.TaskName.CleanOldBundles);
|
||||||
@@ -178,7 +194,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Butler.StopTaskAsync(taskName: LukeHagar.PlexAPI.SDK.Models.Requests.PathParamTaskName.BackupDatabase);
|
var res = await sdk.Butler.StopTaskAsync(taskName: LukeHagar.PlexAPI.SDK.Models.Requests.PathParamTaskName.BackupDatabase);
|
||||||
|
|||||||
@@ -24,7 +24,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Hubs.GetGlobalHubsAsync(
|
var res = await sdk.Hubs.GetGlobalHubsAsync(
|
||||||
@@ -69,7 +73,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Hubs.GetLibraryHubsAsync(
|
var res = await sdk.Hubs.GetLibraryHubsAsync(
|
||||||
|
|||||||
@@ -34,7 +34,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetFileHashAsync(
|
var res = await sdk.Library.GetFileHashAsync(
|
||||||
@@ -79,7 +83,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetRecentlyAddedAsync(
|
var res = await sdk.Library.GetRecentlyAddedAsync(
|
||||||
@@ -128,7 +136,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetAllLibrariesAsync();
|
var res = await sdk.Library.GetAllLibrariesAsync();
|
||||||
@@ -201,7 +213,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetLibraryDetailsAsync(
|
var res = await sdk.Library.GetLibraryDetailsAsync(
|
||||||
@@ -245,7 +261,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.DeleteLibraryAsync(sectionKey: 9518);
|
var res = await sdk.Library.DeleteLibraryAsync(sectionKey: 9518);
|
||||||
@@ -305,7 +325,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
GetLibraryItemsRequest req = new GetLibraryItemsRequest() {
|
GetLibraryItemsRequest req = new GetLibraryItemsRequest() {
|
||||||
@@ -356,7 +380,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetRefreshLibraryMetadataAsync(
|
var res = await sdk.Library.GetRefreshLibraryMetadataAsync(
|
||||||
@@ -418,7 +446,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetSearchLibraryAsync(
|
var res = await sdk.Library.GetSearchLibraryAsync(
|
||||||
@@ -463,7 +495,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetMetaDataByRatingKeyAsync(ratingKey: 9518);
|
var res = await sdk.Library.GetMetaDataByRatingKeyAsync(ratingKey: 9518);
|
||||||
@@ -504,7 +540,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetMetadataChildrenAsync(
|
var res = await sdk.Library.GetMetadataChildrenAsync(
|
||||||
@@ -549,7 +589,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetTopWatchedContentAsync(
|
var res = await sdk.Library.GetTopWatchedContentAsync(
|
||||||
@@ -593,7 +637,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Library.GetOnDeckAsync();
|
var res = await sdk.Library.GetOnDeckAsync();
|
||||||
|
|||||||
@@ -26,7 +26,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Log.LogLineAsync(
|
var res = await sdk.Log.LogLineAsync(
|
||||||
@@ -92,7 +96,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
string req = "level=4&message=Test%20message%201&source=postman
|
string req = "level=4&message=Test%20message%201&source=postman
|
||||||
@@ -136,7 +144,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Log.EnablePaperTrailAsync();
|
var res = await sdk.Log.EnablePaperTrailAsync();
|
||||||
|
|||||||
@@ -27,7 +27,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Media.MarkPlayedAsync(key: 59398D);
|
var res = await sdk.Media.MarkPlayedAsync(key: 59398D);
|
||||||
@@ -67,7 +71,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Media.MarkUnplayedAsync(key: 59398D);
|
var res = await sdk.Media.MarkUnplayedAsync(key: 59398D);
|
||||||
@@ -108,7 +116,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Media.UpdatePlayProgressAsync(
|
var res = await sdk.Media.UpdatePlayProgressAsync(
|
||||||
@@ -154,7 +166,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
GetBannerImageRequest req = new GetBannerImageRequest() {
|
GetBannerImageRequest req = new GetBannerImageRequest() {
|
||||||
@@ -203,7 +219,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
GetThumbImageRequest req = new GetThumbImageRequest() {
|
GetThumbImageRequest req = new GetThumbImageRequest() {
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
CreatePlaylistRequest req = new CreatePlaylistRequest() {
|
CreatePlaylistRequest req = new CreatePlaylistRequest() {
|
||||||
@@ -84,7 +88,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Playlists.GetPlaylistsAsync(
|
var res = await sdk.Playlists.GetPlaylistsAsync(
|
||||||
@@ -130,7 +138,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Playlists.GetPlaylistAsync(playlistID: 4109.48D);
|
var res = await sdk.Playlists.GetPlaylistAsync(playlistID: 4109.48D);
|
||||||
@@ -171,7 +183,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Playlists.DeletePlaylistAsync(playlistID: 216.22D);
|
var res = await sdk.Playlists.DeletePlaylistAsync(playlistID: 216.22D);
|
||||||
@@ -212,7 +228,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Playlists.UpdatePlaylistAsync(
|
var res = await sdk.Playlists.UpdatePlaylistAsync(
|
||||||
@@ -262,7 +282,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Playlists.GetPlaylistContentsAsync(
|
var res = await sdk.Playlists.GetPlaylistContentsAsync(
|
||||||
@@ -307,7 +331,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Playlists.ClearPlaylistContentsAsync(playlistID: 1893.18D);
|
var res = await sdk.Playlists.ClearPlaylistContentsAsync(playlistID: 1893.18D);
|
||||||
@@ -349,7 +377,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Playlists.AddPlaylistContentsAsync(
|
var res = await sdk.Playlists.AddPlaylistContentsAsync(
|
||||||
@@ -396,7 +428,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Playlists.UploadPlaylistAsync(
|
var res = await sdk.Playlists.UploadPlaylistAsync(
|
||||||
|
|||||||
@@ -28,7 +28,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetCompanionsDataAsync();
|
var res = await sdk.Plex.GetCompanionsDataAsync();
|
||||||
@@ -67,7 +71,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetUserFriendsAsync();
|
var res = await sdk.Plex.GetUserFriendsAsync();
|
||||||
@@ -104,7 +112,13 @@ Returns the geolocation and locale data of the caller
|
|||||||
using LukeHagar.PlexAPI.SDK;
|
using LukeHagar.PlexAPI.SDK;
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||||
|
|
||||||
var sdk = new PlexAPI(xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40");
|
var sdk = new PlexAPI(
|
||||||
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetGeoDataAsync();
|
var res = await sdk.Plex.GetGeoDataAsync();
|
||||||
|
|
||||||
@@ -142,7 +156,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetHomeDataAsync();
|
var res = await sdk.Plex.GetHomeDataAsync();
|
||||||
@@ -176,11 +194,15 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetServerResourcesAsync(
|
var res = await sdk.Plex.GetServerResourcesAsync(
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40",
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.One,
|
includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.One,
|
||||||
includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.One,
|
includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.One,
|
||||||
includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.One
|
includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.One
|
||||||
@@ -193,7 +215,7 @@ var res = await sdk.Plex.GetServerResourcesAsync(
|
|||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `XPlexClientIdentifier` | *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 |
|
| `ClientID` | *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 |
|
||||||
| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
|
||||||
| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
|
||||||
| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
|
||||||
@@ -214,7 +236,7 @@ var res = await sdk.Plex.GetServerResourcesAsync(
|
|||||||
|
|
||||||
## GetPin
|
## GetPin
|
||||||
|
|
||||||
Retrieve a Pin from Plex.tv for authentication flows
|
Retrieve a Pin ID from Plex.tv to use for authentication flows
|
||||||
|
|
||||||
### Example Usage
|
### Example Usage
|
||||||
|
|
||||||
@@ -223,25 +245,27 @@ using LukeHagar.PlexAPI.SDK;
|
|||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||||
|
|
||||||
var sdk = new PlexAPI(xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40");
|
var sdk = new PlexAPI(
|
||||||
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
var res = await sdk.Plex.GetPinAsync(
|
clientName: "Plex Web",
|
||||||
strong: false,
|
clientVersion: "4.133.0",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40",
|
clientPlatform: "Chrome",
|
||||||
xPlexProduct: "Plex Web"
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
GetPinRequest req = new GetPinRequest() {};
|
||||||
|
|
||||||
|
var res = await sdk.Plex.GetPinAsync(req);
|
||||||
|
|
||||||
// handle response
|
// handle response
|
||||||
```
|
```
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
|
||||||
| `Strong` | *bool* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
|
| `request` | [GetPinRequest](../../Models/Requests/GetPinRequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||||
| `XPlexClientIdentifier` | *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 |
|
| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. |
|
||||||
| `XPlexProduct` | *string* | :heavy_minus_sign: | N/A | Plex Web |
|
|
||||||
| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|
||||||
@@ -266,11 +290,17 @@ using LukeHagar.PlexAPI.SDK;
|
|||||||
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
using LukeHagar.PlexAPI.SDK.Models.Requests;
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||||
|
|
||||||
var sdk = new PlexAPI(xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40");
|
var sdk = new PlexAPI(
|
||||||
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
|
);
|
||||||
|
|
||||||
var res = await sdk.Plex.GetTokenByPinIdAsync(
|
var res = await sdk.Plex.GetTokenByPinIdAsync(
|
||||||
pinID: 408895,
|
pinID: 408895,
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40"
|
||||||
);
|
);
|
||||||
|
|
||||||
// handle response
|
// handle response
|
||||||
@@ -281,7 +311,7 @@ var res = await sdk.Plex.GetTokenByPinIdAsync(
|
|||||||
| Parameter | Type | Required | Description | Example |
|
| Parameter | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `PinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
| `PinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
|
||||||
| `XPlexClientIdentifier` | *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 |
|
| `ClientID` | *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 |
|
||||||
| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
|
||||||
|
|
||||||
### Response
|
### Response
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Search.PerformSearchAsync(
|
var res = await sdk.Search.PerformSearchAsync(
|
||||||
@@ -87,7 +91,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Search.PerformVoiceSearchAsync(
|
var res = await sdk.Search.PerformVoiceSearchAsync(
|
||||||
@@ -133,7 +141,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Search.GetSearchResultsAsync(query: "110");
|
var res = await sdk.Search.GetSearchResultsAsync(query: "110");
|
||||||
|
|||||||
@@ -30,7 +30,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
var res = await sdk.Server.GetServerCapabilitiesAsync();
|
||||||
@@ -63,7 +67,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerPreferencesAsync();
|
var res = await sdk.Server.GetServerPreferencesAsync();
|
||||||
@@ -96,7 +104,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetAvailableClientsAsync();
|
var res = await sdk.Server.GetAvailableClientsAsync();
|
||||||
@@ -129,7 +141,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetDevicesAsync();
|
var res = await sdk.Server.GetDevicesAsync();
|
||||||
@@ -160,7 +176,13 @@ This request is useful to determine if the server is online or offline
|
|||||||
using LukeHagar.PlexAPI.SDK;
|
using LukeHagar.PlexAPI.SDK;
|
||||||
using LukeHagar.PlexAPI.SDK.Models.Components;
|
using LukeHagar.PlexAPI.SDK.Models.Components;
|
||||||
|
|
||||||
var sdk = new PlexAPI(xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40");
|
var sdk = new PlexAPI(
|
||||||
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerIdentityAsync();
|
var res = await sdk.Server.GetServerIdentityAsync();
|
||||||
|
|
||||||
@@ -191,7 +213,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetMyPlexAccountAsync();
|
var res = await sdk.Server.GetMyPlexAccountAsync();
|
||||||
@@ -226,15 +252,19 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
GetResizedPhotoRequest req = new GetResizedPhotoRequest() {
|
GetResizedPhotoRequest req = new GetResizedPhotoRequest() {
|
||||||
Width = 110D,
|
Width = 110D,
|
||||||
Height = 165D,
|
Height = 165D,
|
||||||
Opacity = 100,
|
Opacity = 100,
|
||||||
Blur = 20D,
|
Blur = 4000D,
|
||||||
MinSize = LukeHagar.PlexAPI.SDK.Models.Requests.MinSize.One,
|
MinSize = LukeHagar.PlexAPI.SDK.Models.Requests.MinSize.Zero,
|
||||||
Upscale = LukeHagar.PlexAPI.SDK.Models.Requests.Upscale.Zero,
|
Upscale = LukeHagar.PlexAPI.SDK.Models.Requests.Upscale.Zero,
|
||||||
Url = "/library/metadata/49564/thumb/1654258204",
|
Url = "/library/metadata/49564/thumb/1654258204",
|
||||||
};
|
};
|
||||||
@@ -276,7 +306,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetMediaProvidersAsync(xPlexToken: "CV5xoxjTpFKUzBTShsaf");
|
var res = await sdk.Server.GetMediaProvidersAsync(xPlexToken: "CV5xoxjTpFKUzBTShsaf");
|
||||||
@@ -315,7 +349,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Server.GetServerListAsync();
|
var res = await sdk.Server.GetServerListAsync();
|
||||||
|
|||||||
@@ -25,7 +25,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Sessions.GetSessionsAsync();
|
var res = await sdk.Sessions.GetSessionsAsync();
|
||||||
@@ -59,7 +63,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Sessions.GetSessionHistoryAsync(
|
var res = await sdk.Sessions.GetSessionHistoryAsync(
|
||||||
@@ -106,7 +114,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Sessions.GetTranscodeSessionsAsync();
|
var res = await sdk.Sessions.GetTranscodeSessionsAsync();
|
||||||
@@ -140,7 +152,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Sessions.StopTranscodeSessionAsync(sessionKey: "zz7llzqlx8w9vnrsbnwhbmep");
|
var res = await sdk.Sessions.StopTranscodeSessionAsync(sessionKey: "zz7llzqlx8w9vnrsbnwhbmep");
|
||||||
|
|||||||
@@ -25,7 +25,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Statistics.GetStatisticsAsync(timespan: 4);
|
var res = await sdk.Statistics.GetStatisticsAsync(timespan: 4);
|
||||||
@@ -65,7 +69,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Statistics.GetResourcesStatisticsAsync(timespan: 4);
|
var res = await sdk.Statistics.GetResourcesStatisticsAsync(timespan: 4);
|
||||||
@@ -105,7 +113,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Statistics.GetBandwidthStatisticsAsync(timespan: 4);
|
var res = await sdk.Statistics.GetBandwidthStatisticsAsync(timespan: 4);
|
||||||
|
|||||||
@@ -25,7 +25,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Updater.GetUpdateStatusAsync();
|
var res = await sdk.Updater.GetUpdateStatusAsync();
|
||||||
@@ -59,7 +63,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Updater.CheckForUpdatesAsync(download: LukeHagar.PlexAPI.SDK.Models.Requests.Download.One);
|
var res = await sdk.Updater.CheckForUpdatesAsync(download: LukeHagar.PlexAPI.SDK.Models.Requests.Download.One);
|
||||||
@@ -100,7 +108,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
var res = await sdk.Updater.ApplyUpdatesAsync(
|
var res = await sdk.Updater.ApplyUpdatesAsync(
|
||||||
|
|||||||
@@ -24,7 +24,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
GetTimelineRequest req = new GetTimelineRequest() {
|
GetTimelineRequest req = new GetTimelineRequest() {
|
||||||
@@ -77,7 +81,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
StartUniversalTranscodeRequest req = new StartUniversalTranscodeRequest() {
|
StartUniversalTranscodeRequest req = new StartUniversalTranscodeRequest() {
|
||||||
|
|||||||
@@ -23,7 +23,11 @@ using LukeHagar.PlexAPI.SDK.Models.Components;
|
|||||||
|
|
||||||
var sdk = new PlexAPI(
|
var sdk = new PlexAPI(
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
||||||
|
clientName: "Plex Web",
|
||||||
|
clientVersion: "4.133.0",
|
||||||
|
clientPlatform: "Chrome",
|
||||||
|
deviceName: "Linux"
|
||||||
);
|
);
|
||||||
|
|
||||||
GetWatchListRequest req = new GetWatchListRequest() {
|
GetWatchListRequest req = new GetWatchListRequest() {
|
||||||
|
|||||||
Reference in New Issue
Block a user