api-js-client:Ponup API 的 JavaScript 客户端

时间:2021-07-21 17:43:12
【文件属性】:
文件名称:api-js-client:Ponup API 的 JavaScript 客户端
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-21 17:43:12
JavaScript Ponup API Javascript 客户端 使用这个小库从您的 Javascript 游戏连接到 Ponup API。 使用示例 `` // 初始化 API。 var api = new PonupApi( accountId, apiKey ), // 检索您收藏中的所有游戏。 游戏 = api.retrieveGames(); // 对于每个游戏打印排行榜。 games.forEach(function(game){varscores=api.retrieveScores(game.alias,10,function(scores){console.dir(scores);});}); `` 安装依赖 假设你已经用 npm 安装了 bower。 bower install 运行测试套件 phantomjs bower_components/qunit-phantomjs-r
【文件预览】:
api-js-client-master
----.travis.yml(172B)
----test.js(324B)
----test.html(471B)
----api.js(964B)
----.gitignore(17B)
----README.md(776B)
----bower.json(553B)

网友评论