xbox360游戏下载

My sharpshooter status aside, I've always been surprised upset that Microsoft has never provided an API for the vast amount of information about users, the games they play, and statistics within the games. Namely, I'd like to publicly shame every n00b I've baptized with my sniper rifle. I recently found a great gamer API effort by XboxLeaders.com. While their API can't tell me the titles and emblems I've earned in Black Ops II, I can get some relevant information about my user, my status, and the games I've recently dominated.

除了我的神枪手地位,我总是感到惊讶 ,因为微软从未为用户提供有关大量用户,他们所玩游戏以及游戏统计信息的大量信息。 就是说,我想公开地对我用狙击步枪洗过的所有n00b感到羞耻。 最近,我发现XboxLeaders.com为游戏API付出了巨大努力。 尽管他们的API不能告诉我在Black Ops II中获得的标题和标志,但我可以获得有关用户,状态和最近统治的游戏的一些相关信息。

View Demo观看演示

Xbox API (Xbox API)

XboxLeaders currently offers data in three formats (XML, JSON, and serialized PHP) at four API endpoints to retrieve information from:

XboxLeaders当前在四个API端点提供三种格式(XML,JSON和序列化PHP)的数据,以从以下位置检索信息:

  • GET profile/:gamertag - Returns data pertaining to the requested gamers' profile on Xbox LIVE.

    GET profile/:gamertag返回与Xbox LIVE上请求的游戏者个人资料有关的数据。

  • GET games/:gamertag - Returns data pertaining to the requested gamers' played games. All game data is returned except for achievements.

    GET games/:gamertag返回与请求的玩家玩过的游戏有关的数据。 返回所有游戏数据(成就除外)。

  • GET achievements/:gamertag/:gameid - Returns all achievement data for the requested gamer and game.

    GET achievements/:gamertag/:gameid返回请求的玩家和游戏的所有成就数据。

  • GET friends/:gamertag - Returns all friend data for the requested gamer. Will error out if friends list is private.

    GET friends/:gamertag返回所请求游戏者的所有朋友数据。 如果朋友列表是私人的,将会出错。

These endpoints allow developers to access all of the important gamer-specific data available. XboxLeaders is also working on a POST implementation for sendings messages. Authorization may become required for this API, but the API is currently open to anyone that wants to use it.

这些端点允许开发人员访问所有可用的重要游戏特定数据。 XboxLeaders还正在研究POST实现,以发送消息。 该API可能需要授权,但是该API当前对任何想要使用它的人开放。

Calls to the profile API will return the following information:

调用配置文件API将返回以下信息:


{
"Data": {
"Tier": "gold",
"IsValid": 1,
"IsCheater": 0,
"IsOnline": 1,
"OnlineStatus": "Online playing COD: Black Ops II - Search & Destroy\r\non Overflow",
"XBLLaunchTeam": 0,
"NXELaunchTeam": 0,
"KinectLaunchTeam": 0,
"AvatarTile": "https://avatar-ssl.xboxlive.com/global/t.fffe07d1/tile/0/2000b",
"AvatarSmall": "http://avatar.xboxlive.com/avatar/dwalsh83/avatarpic-s.png",
"AvatarLarge": "http://avatar.xboxlive.com/avatar/dwalsh83/avatarpic-l.png",
"AvatarBody": "http://avatar.xboxlive.com/avatar/dwalsh83/avatar-body.png",
"Gamertag": "dwalsh83",
"GamerScore": 310,
"Reputation": 20,
"Name": "David Walsh",
"Motto": "Watch your head.",
"Location": "Madison, WI, US",
"Bio": "There is, and only can be, Call of Duty."
},
"Stat": "ok",
"In": 2.504,
"Authed": "false",
"AuthedAs": null
}

That's a nice amount of data to work with. The other API calls will return likewise relevant information.

可以处理的数据量很大。 其他API调用将同样返回相关信息。

使用Xbox Gamer API (Using the Xbox Gamer API)

So what can be created with this Xbox Gamer API? That's up to your imagination! Let me use this awesome API to create a gamer card!

那么可以用这个Xbox Gamer API创建什么呢? 这取决于您的想象力! 让我使用这个很棒的API来创建玩家卡!


<?php
// Vars
$gamertag = 'dwalsh83';
/*
Would be better to use cURL, but for briefness of code, using file_get_contents
*/
// Get profile information
$profile = json_decode(file_get_contents('http://www.xboxleaders.com/api/profile.json?gamertag='.$gamertag));
$profile = $profile->Data;
// Get game information
$games = json_decode(file_get_contents('http://www.xboxleaders.com/api/games.json?gamertag='.$gamertag));
$games = $games->Data;
?>
<!DOCTYPE html>
<html>
<head>
<style>
.gamercard {
border: 1px solid #bdbec1;
padding: 10px;
width: 600px;
font-family: arial, sans-serif;
font-size: 12px;
color: #bdbec1;
background-image: -webkit-linear-gradient(#ddd, #fff, #e9fdce);
background-image: -moz-linear-gradient(top, #ddd, #fff, #e9fdce);
background-image: -ms-linear-gradient(#ddd, #fff, #e9fdce);
background-image: -o-linear-gradient(#ddd, #fff, #e9fdce);
background-image: linear-gradient(#ddd, #fff, #e9fdce);
}
.gamercard img {
display: block;
}
.gamercard .avatar {
float: right;
width: 150px;
height: 300px;
margin: -60px 0 0 50px;
}
.gamercard h1 {
font-weight: normal;
color: #78BB58;
}
.gamercard h1 img {
display: inline-block;
padding-right: 10px;
width: 24px;
height: 24px;
}
.gamercard h2 {
color: #111;
font-size: 16px;
font-weight: normal;
margin-top: 15px;
}
.gamercard ul {
list-style-type: none;
}
.gamercard ul li {
padding-top: 8px;
}
.gamercard ul li strong {
color: #666;
}
.gamercard ul.games li {
display: inline-block;
margin-right: 20px;
text-align: center;
font-weight: bold;
width: 85px;
vertical-align: top;
}
.gamercard ul.games li img {
margin: 0 auto;
width: 85px;
}
.gamercard a {
color: #78bb58;
}
.gamercard .clear {
clear: both;
}
</style>
</head>
<body>
<!-- gamercard -->
<div class="gamercard">
<!-- profile image -->
<img src="<?php echo $profile->AvatarBody; ?>" alt="<?php echo $profile->Gamertag; ?>" class="avatar" />
<!-- gamer name -->
<h1><img src="<?php echo $profile->AvatarTile; ?>" alt="<?php echo $profile->Gamertag; ?>" /><?php echo $profile->Gamertag; ?></h1>
<!-- personal info -->
<h2>The Legend</h2>
<ul>
<li><strong>Name:</strong> <?php echo $profile->Name; ?></li>
<li><strong>Bio:</strong> <?php echo $profile->Bio; ?></li>
<li><strong>Location:</strong> <?php echo $profile->Location; ?></li>
<li><strong>Motto:</strong> <?php echo $profile->Motto; ?></li>
<li><strong>Online:</strong> <?php echo $profile->IsOnline ? 'Online' : 'Offline'; ?></li>
<li><strong>Status:</strong> <?php echo $profile->IsOnline ? $profile->OnlineStatus : '(none)'; ?></li>
</ul>
<?php if(count($games->PlayedGames)): ?>
<!-- recent games -->
<h2>Recent Games</h2>
<ul class="games">
<?php foreach($games->PlayedGames as $game): ?>
<li><a href="<?php echo $game->Url; ?>"><img src="<?php echo $game->BoxArt; ?>" alt="<?php echo $game->Title; ?>" /></a><br /><?php echo $game->Title; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<div class="clear"></div>
</div>
</body>
</html>

This is a simple gamer card. An awesome addition would be a side scrolling list of games, and possibly a display of achievements when you click on each game. In any event, XboxLeaders' API will get you the information you need.

这是一张简单的玩家卡。 很棒的添加是游戏的侧面滚动列表,并且可能在您单击每个游戏时显示成就。 无论如何,XboxLeaders的API都会为您提供所需的信息。

View Demo观看演示

XboxLeaders' enhanced Xbox Gamer API is easy to use, dependable, and unique. This API fills a gap Microsoft has created by not providing a public Xbox API, and does it incredibly well. As always, do your best to cache requests so as to keep their server load low and your site fast. Let me know if you create something with this API -- I'd love to see it!

XboxLeaders增强的Xbox Gamer API易于使用,可靠且独特。 该API弥补了Microsoft通过不提供公共Xbox API所造成的空白,并且做得非常好。 与往常一样,请尽力缓存请求 ,以保持服务器负载低和站点快速。 如果您使用此API创建内容,请告诉我-我很乐意看到它!

翻译自: https://davidwalsh.name/xbox-api

xbox360游戏下载


http://www.taodudu.cc/news/show-3172107.html

相关文章:

  • XBOX360 硬盘玩游戏
  • xna开发_Xbox360 XNA游戏开发-Hanselman对话模拟器
  • xbox360链接pc_如何将PC游戏从Windows 10免费流式传输到Xbox One
  • 【Xbox360】 Party Buffalo Xbox360 硬盘读写程序 使用教程
  • xbox360游戏下载_如何将游戏文件移动到另一个Xbox
  • XBOX360更新游戏封皮(FSD自制系统)
  • Linux服务器环境配置-Pytorch
  • 从sql server 到mysql,从Microsoft SQL Server到MySQL的转换
  • MySQL 慢日志分析工具Mysqldumpslow
  • 多目标优化算法(一):知识储备
  • 部署工具(deploy-tool)开源拉!
  • 【AI视野·今日NLP 自然语言处理论文速览 第三十一期】Fri, 15 Apr 2022
  • hash表的平均查找长度C语言,关于ASL(平均查找长度)的简单总结
  • LTTng CenOS 源码安装整理(安装步骤以及报错解决方法)
  • 【windows版】TensorRT安装教程
  • ajax请求 拦截窗口,ajax请求成功后新开窗口window.open()被拦截解决方法
  • mysql mysqldumpslow 如何配置_详解 慢查询 之 mysqldumpslow
  • 作为一个小白的Python3 Pycharm Anaconda3 Cuda Cudnn的环境配置安装和pip下载安装tensorflow
  • NLP工具——Stanford CoreNLP的python封装包 处理中文
  • linux命令行下载cuda,linux 命令行下安装特定版本的 cuda (踩坑记录)
  • Ubuntu18.04安装cuda+ [ERROR]: Install of driver component failed.的解决
  • git自动部署代码到服务器windows,Jenkins-在windows上配置自动化部署(Jenkins+Gitlab+IIS)...
  • toolkit-frame之toolkit-sprider(数据采集)---笔趣阁小说
  • Splunk机器学习应用(Machine Learning Toolkit)
  • Hexagon Binutils GNU 手册(19)
  • office简繁体转换插件
  • [NLP]如何安装繁简转换工具:opencc
  • 简单的中文繁简转换
  • .Net Core下繁简转换的实现
  • Python使用opencc工具进行繁简转换

xbox360游戏下载_Xbox Live游戏玩家API相关推荐

  1. 【资源】Oculus meta Quest 2游戏下载VR一体机游戏资源合集下载教程Pro

    meta Oculus Quest2的VR一体机已经发布有一段时间了,虽然后起之秀的VR一体机设备陆续也发布,尤其是近期pico4的发布,但是不可否认,Quest2至今依然是VR一体机设备的生态之王, ...

  2. java东风破笑傲江湖游戏下载_笑傲江湖游戏

    为您推荐:dos游戏 笑傲江湖(DOS)是一款经典的武侠游戏作品,游戏通过完美移植金庸小说的内容,用突出的DOS系统3D效果,为玩家重新讲述一遍经典的武侠故事,笑傲江湖(DOS)虽然游戏题材固定,游戏 ...

  3. linux火车游戏下载,火车撞击游戏下载-火车撞击安卓版v1.1-Linux公社

    火车撞击游戏,是一款非常有趣的益智休闲类手机游戏.游戏中有着众多关卡可以解锁,难度也会随着关卡的提升而提高.在火车撞击游戏你中玩家需要在火车撞击游戏中成功的帮助小火车达到目的地,刚兴趣的玩家可以下载试 ...

  4. 水果乐园java 闯关游戏免费下载_水果乐园游戏下载-水果乐园游戏安卓版 v1.0_手机乐园...

    游戏简介 水果乐园是一款经典的水果题材的休闲合集游戏.各种趣味的水果,经典的休闲游戏模式,都能在这里到.想玩三消,有!想玩口红机,有!想玩切水果,有!等等等,全心全意为玩家打造的水果游戏乐园,清新的游 ...

  5. linux上的h游戏下载,开源3D游戏hcraft

    hcraft基于irrlcht开发,公开源代码比赛类型,带AI的3D游戏,可运行于WIN.linux .Android. 运行下载: 简述win 7下环境配置开发: 安装必需品 添加下面目录到环境变量 ...

  6. hurricane中文_Hurricane Outbreak游戏下载_Hurricane Outbreak游戏中文版下载安装(飓风模拟器) v1.1.9...

    Hurricane Outbreak游戏是一次风中极限的幻想世界,科技版的界面格局,玩家将操作着爆发力极强的飓风消灭眼前一切,多样化的玩法让你们都能很有激情的玩法,无尽的挑战,会让所有人都热血澎湃,根 ...

  7. java 大富翁 游戏下载_Java手机游戏大富翁源代码+注释JAVA游戏源码下载

    源码介绍 Java手机游戏豪富翁源代码+注释 (3 folders, 3 files, 3.08 KB, 627.96 KB in total.)      Readme.txt 1.69 ...

  8. java捕鱼增值版游戏下载_捕鱼游戏 java

    a. base: conf配置服务器 自己所要使用的服务器的properties--rabbitmq客户端修改用户名和密码 eureka 服务注册和发现作用 b. zipkin + sleuth 追踪 ...

  9. c语言编程贪吃蛇游戏 下载,C语言游戏编程 贪吃蛇游戏

    #include dos.h DOS接口函数 #include math.h 数学函数的定义 #include conio.h 屏幕操作函数 #include stdio.h IO函数 #includ ...

最新文章

  1. 谁说程序员只能new对象?凭本事追的女神
  2. burpsuit拦截不了_burpsuite无法拦截本地流量
  3. AWS CEO Andy Jassy 专访:我们一直思考的是未来 2-5 年的事 | 人物志
  4. plSql安装以及连接远程oracle相关配置
  5. Redmi发布98寸电视:屏占比98.8%、价格仅为友商1/5
  6. OpenShift4 - 使用 Service CA 证书增加内部通讯安全
  7. php fopen html,PHP fopen和fwrite函数实现创建html页面_PHP教程
  8. oracle表分析效果怎么看,Oracle 索引与表分析几种方法
  9. 《推荐系统笔记(十二)》聚类生成标签以及基于标签的TopN推荐
  10. 电脑小白和黑客的对白
  11. ICPC程序设计题解书籍系列之六:吴永辉:《算法设计编程实验》
  12. 第五周-第13章节-Python3.5-内置模块详解之Hashlib、模块
  13. C# 值类型与引用类型的异同
  14. Python 二次开发 AutoCAD 简介
  15. 【计算机网络】透明网桥:逆向学习算法逐步建立转发表(例题详细解析)
  16. 会议室管理前端页面_多媒体会议室,会议系统,指挥控制中心,调度中心方案设计方案...
  17. 编译原理中Follow集的求法
  18. sql 纵向求和_SQL里边的求和语句怎么写
  19. 基于北向资金指数择时策略验证与思考
  20. 微博消息分析-大数据项目

热门文章

  1. libcef arm 编译
  2. Vue商城项目(篇5)购物车页面
  3. GB/T 28046 道路车辆 电气及电子设备的环境条件和试验
  4. Spring Boot Vue Admin 前后端完全分离的权限控制模版
  5. C语言string中的find()函数
  6. zabbix 各监控项的键值
  7. Matlab一维矩阵无法与三维矩阵进行矩阵乘法?
  8. 各种证件照片规格,值得收藏!!!
  9. Visual Modflow
  10. IDEA project encoding 设置项目编码