We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13edb6 commit 3b85711Copy full SHA for 3b85711
1 file changed
src/main/java/xyz/theprogramsrc/supercoreapi/global/apis/groupez/GroupeZAPI.java
@@ -0,0 +1,17 @@
1
+package xyz.theprogramsrc.supercoreapi.global.apis.groupez;
2
+
3
+import xyz.theprogramsrc.supercoreapi.global.utils.Utils;
4
5
+public class GroupeZAPI {
6
7
+ /**
8
+ * Used to retrieve the last version using the GroupeZ API
9
+ *
10
+ * @param pluginId Identifier of the plugin
11
+ * @return Null if there is an error, otherwise you'll get the last version
12
+ */
13
+ public static String getLastVersion(String pluginId){
14
+ String url = "https://groupez.dev/api/v1/resource/version/" + pluginId;
15
+ return Utils.readWithInputStream(url);
16
+ }
17
+}
0 commit comments