Skip to content

Instantly share code, notes, and snippets.

View sdieunidou's full-sized avatar
🏠
Working from home

Seb sdieunidou

🏠
Working from home
View GitHub Profile
@sdieunidou
sdieunidou / .scrutinizer.yml
Created February 13, 2017 11:42
scrutinizer default configuration symfony3
filter:
excluded_paths:
- 'app/*'
- 'tests/*'
- 'bin/*'
- '*.min.js'
- 'web/assets/vendor/*'
- 'var/'
checks:
@sdieunidou
sdieunidou / hytale-api.php
Last active May 1, 2019 18:02
hytale-api.php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ArticlesApi();
try {
// get latest articles
$result = $apiInstance->getArticles();
print_r($result);
@sdieunidou
sdieunidou / hytale-api.java
Last active April 29, 2019 15:33
hytale-api.java
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
@sdieunidou
sdieunidou / hytale-api.js
Last active April 29, 2019 15:30
hytale-api.js
var HytaleApi = require('hytale-api-sdk');
var api = new HytaleApi.ArticlesApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
console.log(data);
}
<?php
// READ: https://mtxserv.com/forums/threads/api-game-viewer.295/
// Example usage of API Game Viewer (mtxserv.com)
$urlToken = 'https://mtxserv.com/oauth/v2/token?';
$urlViewer = 'https://mtxserv.com/api/v1/viewers/game?';
$query = array(
'grant_type' => 'https://mtxserv.com/grants/api_key',
'client_id' => '', // A Editer