mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.392.1
This commit is contained in:
15
NUGET.md
15
NUGET.md
@@ -73,10 +73,11 @@ var res = await sdk.Plex.GetServerResourcesAsync(req);
|
||||
|
||||
Handling errors in this SDK should largely match your expectations. All operations return a response object or thow an exception. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate type.
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||
| LukeHagar.PlexAPI.SDK.Models.Errors.GetServerCapabilitiesResponseBody | 401 | application/json |
|
||||
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
||||
| LukeHagar.PlexAPI.SDK.Models.Errors.GetServerCapabilitiesResponseBody | 400 | application/json |
|
||||
| LukeHagar.PlexAPI.SDK.Models.Errors.GetServerCapabilitiesServerResponseBody | 401 | application/json |
|
||||
| LukeHagar.PlexAPI.SDK.Models.Errors.SDKException | 4xx-5xx | */* |
|
||||
|
||||
### Example
|
||||
|
||||
@@ -103,6 +104,10 @@ catch (Exception ex)
|
||||
{
|
||||
// handle exception
|
||||
}
|
||||
else if (ex is GetServerCapabilitiesServerResponseBody)
|
||||
{
|
||||
// handle exception
|
||||
}
|
||||
else if (ex is LukeHagar.PlexAPI.SDK.Models.Errors.SDKException)
|
||||
{
|
||||
// handle exception
|
||||
@@ -148,7 +153,7 @@ var sdk = new PlexAPI(
|
||||
xPlexClientIdentifier: "gcgzw5rz2xovp84b4vha3a40"
|
||||
);
|
||||
|
||||
var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2");
|
||||
var res = await sdk.Plex.GetCompanionsDataAsync(serverUrl: "https://plex.tv/api/v2/");
|
||||
|
||||
// handle response
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user