Skip to content

Commit 3b85711

Browse files
committed
🚧 Add groupez API
1 parent a13edb6 commit 3b85711

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • src/main/java/xyz/theprogramsrc/supercoreapi/global/apis/groupez
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)