Hytale API - PHP SDK

Created by mTxServ and Hytale.game. With this SDK, you can consume the official Hytale API in PHP.

Travis (.org)

API Documentation: https://app.swaggerhub.com/apis/sdieunidou/hytale-api/1.0

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

composer require hytale-game/hytale-api-sdk-php

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once(__DIR__ . '/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = 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;
}
?>

Documentation for API Endpoints

All URIs are relative to http://hytale.com/api

Class Method HTTP request Description
ArticlesApi getArticleBySlug GET /blog/post/slug/{slug}
ArticlesApi getArticles GET /blog/post/published
ArticlesApi getArticlesOfMonthAndYear GET /blog/post/archive/{year}/{month}/
JobsApi getJobs GET /job/listing

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.