Last active
May 1, 2019 18:02
-
-
Save sdieunidou/97ae6e64c5861256a76b3d6450c8daec to your computer and use it in GitHub Desktop.
hytale-api.php
This file contains hidden or 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
<?php | |
require_once(__DIR__ . '/vendor/autoload.php'); | |
$apiInstance = new Swagger\Client\Api\ArticlesApi(); | |
try { | |
// get latest articles | |
$result = $apiInstance->getArticles(); | |
print_r($result); | |
// show article | |
$slug = "creating-creature-sounds-for-hytale"; // string | Slug of article | |
$result = $apiInstance->getArticleBySlug($slug); | |
print_r($result); | |
} catch (Exception $e) { | |
printf("Exception when calling ArticlesApi: %s\n", $e->getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://hytale-api.com