php 休息 api 调用 [英] php rest api call

查看:24
本文介绍了php 休息 api 调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是 Halo: Reach stats API 的唯一官方文档.如果您有任何疑问,请阅读此群组的论坛和/或 wiki 以获得帮助.

This is the only official documentation available for the Halo: Reach stats API. If you have questions, read this group's forum and/or wiki to get assistance.

这是访问 Halo: Reach 游戏、玩家和文件信息的方法的集合.它们可用作具有三个端点的 .NET 4.0 WCF 服务.为了加强不同协议之间的一致性,所有三个端点都遵循这个接口.每个协议都可以通过位于 http://www.bungie.net/api/的关联端点访问到达/.可用的端点是 JSON REST 查询的reachapijson.svc、XML REST 查询的reachapixml.svc 和遗留SOAP XML 支持的reachapisoap.svc.请注意,本文档中给出的示例使用 REST 语法,SOAP Web 服务的文档不可用.有关详细信息,请参阅您的开发环境 (Visual Studio) 文档.除此文档外,不提供任何官方支持.

This is a collection of methods to access the Halo: Reach game, player, and file information. They are available as a .NET 4.0 WCF service with three endpoints. To enforce consistency between the different protocols, all three endpoints follow this interface. Each protocol may be accessed through its associated endpoint located at http://www.bungie.net/api/reach/. The available endpoints are reachapijson.svc for JSON REST queries, reachapixml.svc for XML REST queries, and reachapisoap.svc for legacy SOAP XML support. Note that the examples given in this documentation use the REST syntax, documentation for SOAP Web services is not available. Consult your development environment's (Visual Studio) documentation for more information. No official support is available other than this documentation.

可用方法注意:标识符"始终是您在帐户设置下注册的应用程序标识符字符串.这用于确保我们知道谁的应用程序在进行统计调用.未注册的应用程序将无法使用.

Available Methods Note: "identifier" is always your application's identifier string that you registered under your account settings. This is used to ensure we know who's application is making the statistics call. Unregistered applications will not work.

GetGameMetadata(System.String)

GetGameMetadata(System.String)

该函数不返回动态数据,而是用于将资源id转换为完整资源(奖牌、表彰等)

This function returns no dynamic data, but rather is used to translate resource ids into full resources (medals, commendations, etc.)

参数

identifier:您的应用程序的标识符字符串.

identifier: Your application's identifier string.

返回值一个包含多个字典的对象,可用于将资源的各种 id 转换为更详细的版本.

Return Value An object containing several dictionaries that can be used to translate the various ids of resources into more detailed versions.

示例:http://www.bungie.net/api/reach/reachapijson.svc/game/metadata/{identifier}

Example: http://www.bungie.net/api/reach/reachapijson.svc /game/metadata/ {identifier}

如何使用php调用这个api并显示数据

how can i use the php to call this api and display data

感谢帮助

推荐答案

如何使用php调用这个api并显示数据

how can i use the php to call this api and display data

cURL

JSON

这篇关于php 休息 api 调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆