文件名称:MundoScript:Node.js LeagueLoLLeague Of Legends API包装器,Focus易于使用
文件大小:2.71MB
文件格式:ZIP
更新时间:2024-05-28 01:09:41
JavaScript
LeagueAPIWrapper(Node.JS) 适用于所有英雄联盟API方法的简单包装器 示例get accountInfo对象可在其他方法中使用: let LeagueAPI = require ( 'leagueapiwrapper' ) ; LeagueAPI = new LeagueAPI ( leagueAPIKey , Region . NA ) ; LeagueAPI . getSummonerByName ( 'LeagueOfSausage' ) . then ( function ( accountInfo ) { // do something with accountInfo console . log ( accountInfo ) ; } ) . catch ( console . error ) ; 获取由