简体   繁体   English

PHP的休息API调用

[英]php rest api call

This is the only official documentation available for the Halo: Reach stats API. 这是Halo:达到统计信息API的唯一官方文档。 If you have questions, read this group's forum and/or wiki to get assistance. 如有疑问,请阅读该论坛的论坛和/或Wiki以获取帮助。

This is a collection of methods to access the Halo: Reach game, player, and file information. 这是访问Halo:Reach游戏,玩家和文件信息的方法的集合。 They are available as a .NET 4.0 WCF service with three endpoints. 它们可作为具有三个端点的.NET 4.0 WCF服务使用。 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/ . 可以通过位于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. 可用的端点是用于JSON REST查询的reachapijson.svc,用于XML REST查询的reachapixml.svc和用于传统SOAP XML支持的reachapisoap.svc。 Note that the examples given in this documentation use the REST syntax, documentation for SOAP Web services is not available. 请注意,本文档中给出的示例使用REST语法,SOAP Web服务文档不可用。 Consult your development environment's (Visual Studio) documentation for more information. 有关更多信息,请查阅开发环境的(Visual Studio)文档。 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. 可用方法注意:“ identifier”始终是您在帐户设置下注册的应用程序的标识符字符串。 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)

This function returns no dynamic data, but rather is used to translate resource ids into full resources (medals, commendations, etc.) 此函数不返回任何动态数据,而是用于将资源ID转换为完整资源(奖牌,奖状等)。

Parameters 参量

identifier: Your application's identifier string. 标识符:应用程序的标识符字符串。

Return Value An object containing several dictionaries that can be used to translate the various ids of resources into more detailed versions. 返回值一个包含几个字典的对象,这些字典可用于将各种资源ID转换为更详细的版本。

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

how can i use the php to call this api and display data 我如何使用php调用此api并显示数据

thanks for help 感谢帮助

how can i use the php to call this api and display data 我如何使用php调用此api并显示数据

cURL 卷曲

JSON JSON格式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM