mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-06 04:20:46 +00:00
56 lines
1.7 KiB
Java
56 lines
1.7 KiB
Java
/*
|
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
*/
|
|
|
|
package dev.plexapi.sdk;
|
|
|
|
import dev.plexapi.sdk.models.operations.CancelServerActivitiesResponse;
|
|
import dev.plexapi.sdk.models.operations.GetServerActivitiesResponse;
|
|
import java.lang.Exception;
|
|
import org.junit.jupiter.api.Disabled;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class ActivitiesTests {
|
|
|
|
@Disabled // test marked as skipped for java or generated unit tests not production ready yet
|
|
@Test
|
|
public void testActivities_GetServerActivities() throws Exception {
|
|
|
|
|
|
PlexAPI sdk = PlexAPI.builder()
|
|
.accessToken("<YOUR_API_KEY_HERE>")
|
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
|
.clientName("Plex Web")
|
|
.clientVersion("4.133.0")
|
|
.clientPlatform("Chrome")
|
|
.deviceName("Linux")
|
|
.build();
|
|
|
|
GetServerActivitiesResponse res = sdk.activities().getServerActivities()
|
|
.call();
|
|
|
|
|
|
}
|
|
|
|
@Disabled // test marked as skipped for java or generated unit tests not production ready yet
|
|
@Test
|
|
public void testActivities_CancelServerActivities_() throws Exception {
|
|
|
|
|
|
PlexAPI sdk = PlexAPI.builder()
|
|
.accessToken("<YOUR_API_KEY_HERE>")
|
|
.clientID("gcgzw5rz2xovp84b4vha3a40")
|
|
.clientName("Plex Web")
|
|
.clientVersion("4.133.0")
|
|
.clientPlatform("Chrome")
|
|
.deviceName("Linux")
|
|
.build();
|
|
|
|
CancelServerActivitiesResponse res = sdk.activities().cancelServerActivities()
|
|
.activityUUID("25b71ed5-0f9d-461c-baa7-d404e9e10d3e")
|
|
.call();
|
|
|
|
|
|
}
|
|
|
|
} |