Skip to content

Instantly share code, notes, and snippets.

@sdieunidou
Last active April 29, 2019 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdieunidou/ee07615a7406f7b412c57936867e7c03 to your computer and use it in GitHub Desktop.
Save sdieunidou/ee07615a7406f7b412c57936867e7c03 to your computer and use it in GitHub Desktop.
hytale-api.java
public class ArticlesApiExample {
public static void main(String[] args) {
ArticlesApi apiInstance = new ArticlesApi();
try {
// get latest articles
List<Article> result = apiInstance.getArticles();
System.out.println(result);
// show article
String slug = "creating-creature-sounds-for-hytale"; // String | Slug of article
Article result = apiInstance.getArticleBySlug(slug);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArticlesApi");
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment