PHP code example of hytale-game / hytale-api-sdk-php
1. Go to this page and download the library: Download hytale-game/hytale-api-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hytale-game / hytale-api-sdk-php example snippets
Instance = new Swagger\Client\Api\ArticlesApi();
try {
$result = $apiInstance->getArticles();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ArticlesApi->getArticles: ', $e->getMessage(), PHP_EOL;
}