EarthMC-API:REST API,可在EarthMC Minecraft服务器上提供信息

时间:2021-05-01 19:32:17
【文件属性】:
文件名称:EarthMC-API:REST API,可在EarthMC Minecraft服务器上提供信息
文件大小:31KB
文件格式:ZIP
更新时间:2021-05-01 19:32:17
JavaScript EarthMC API REST API,可在EarthMC Minecraft服务器上提供信息。 先决条件 安装获取程序包,例如 $ npm install node-fetch 需要包装 var fetch = require ( "node-fetch" ) 例子 var town = await fetch ( "http://earthmc-api.herokuapp.com/towns/London" ) . then ( response => response . json ( ) ) . catch ( err => { return err } ) console . log ( town ) // => { area: 975, x: -352, z: -9904, name: 'TownName', nation: 'NationName', mayor: '
【文件预览】:
EarthMC-API-master
----api()
--------routes()
----.gitignore(2KB)
----app.js(2KB)
----package.json(381B)
----package-lock.json(28KB)
----LICENSE(34KB)
----index.js(227B)
----README.md(3KB)
----web()
--------index.html(697B)
----Procfile(40B)
----.gitattributes(66B)

网友评论