Hytale API - Node.js Javascript SDK
Hytale Api - Node.js SDK pour appeler l'API officielle de Hytale.
Installation pour Node.js
Utilisation
Documentation API Endpoints
Toutes les URLs utilisent le endpoint https://hytale.com/api
Hytale Api - Node.js SDK pour appeler l'API officielle de Hytale.
Installation pour Node.js
Code:
npm install hytale-api-sdk --save
Code:
var HytaleApi = require('hytale-api-sdk');
var api = new HytaleApi.ArticlesApi();
var slug = "creating-creature-sounds-for-hytale"; // {String} Slug of article
var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully'); console.log(data); }
};
api.getArticleBySlug(slug, callback);
Toutes les URLs utilisent le endpoint https://hytale.com/api
Class | Method | HTTP request | Description |
---|---|---|---|
HytaleApi.ArticlesApi | getArticleBySlug | GET /blog/post/slug/{slug} | |
HytaleApi.ArticlesApi | getArticles | GET /blog/post/published | |
HytaleApi.ArticlesApi | getArticlesOfMonthAndYear | GET /blog/post/archive/{year}/{month}/ | |
HytaleApi.JobsApi | getJobs | GET /job/listing |
- HytaleApi.Article
- HytaleApi.CoverImage
- HytaleApi.Job