mirror of
https://github.com/LukeHagar/plexjava.git
synced 2025-12-09 12:37:47 +00:00
SDK update generated by liblab
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.plexsdk</groupId>
|
||||
<groupId>47.one0</groupId>
|
||||
<artifactId>examples</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<version>2.14.0-rc1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.plexsdk</groupId>
|
||||
<groupId>47.one0</groupId>
|
||||
<artifactId>PlexSDK</artifactId>
|
||||
<version>0.0.1</version>
|
||||
</dependency>
|
||||
|
||||
17
examples/src/main/java/47/one0/examples/Main.java
Normal file
17
examples/src/main/java/47/one0/examples/Main.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package 47.one0.examples;
|
||||
|
||||
import 47.one0.exceptions.ApiException;
|
||||
import 47.one0.PlexSDK;
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER"));
|
||||
try {
|
||||
Object response = client.serverService.getServerCapabilities();
|
||||
System.out.println(response);
|
||||
} catch(ApiException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user