Last active
April 29, 2019 15:33
-
-
Save sdieunidou/ee07615a7406f7b412c57936867e7c03 to your computer and use it in GitHub Desktop.
hytale-api.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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