/FastGaming_API_Express

Fast Gameing API

Primary LanguageJavaScriptOtherNOASSERTION

FastGaming_API_Express

Usage/Examples

image

  var axios = require("axios");
  var qs = require("qs");
  var data = qs.stringify({
    type: "minecraft",
    host: "play.craftrise.com.tr",
  });
  var config = {
    method: "post",
    url: "http://localhost/api",
    headers: {
      Accept: "application/json",
      "Content-Type": "application/x-www-form-urlencoded",
    },
    data: data,
  };

  axios(config)
    .then(function (response) {
      console.log(JSON.stringify(response.data));
    })
    .catch(function (error) {
      console.log(error);
    });

API Reference

  POST /api
  • Form Data
Parameter Type Description
type string Server ID in game_list.txt
Parameter Type Description
host string, Server ip address

Tech Stack

Server: Node, Express, Gamedig


License