PHP REST API调用 [英] php rest api call

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

问题描述

这是可用于晕唯一的官方文档:达到统计API。如果您有任何疑问,请阅读本组的论坛和/或维基得到帮助。

这是方法的集合访问光环:致远星的游戏,播放器,和文件信息。它们可与三个端点一个.NET 4.0 WCF服务。为了执行不同协议之间的一致性,所有三个端点遵循这个接口。每个协议可以通过位于 http://www.bungie.net/api/reach其相关的端点访问/ 。可用的端点reachapijson.svc对JSON REST查询,reachapixml.svc为XML REST查询,reachapisoap.svc对传统SOAP XML的支持。请注意,本文档中给出​​的示例使用REST语法,对SOAP Web服务文档不可用。请咨询您的开发环境的(Visual Studio中)文档的详细信息。没有官方的支持比本文档提供的其他。

可用的方法
注意:标识符始终是你在你的帐户设置注册的应用程序的标识字符串。这是用来确保我们知道谁是应用程序发出的统计数据呼叫。未注册的应用程序将无法正常工作。

GetGameMetadata(System.String)

该函数返回没有动态数据,而是用于转换资源ID充分的资源(奖章,表彰等)

参数

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

返回值
可使用的含多个词典一个目的是资源的不同的id转换成更详细的版本

例如: http://www.bungie.net/api/reach/reachapijson。 SVC /游戏/元/ {}标识符

我如何使用PHP来调用此API和显示数据

感谢您的帮助。


解决方案

  

我如何使用PHP来调用此API
  和显示数据


卷曲

JSON

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.

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)

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

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.

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

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

thanks for help

解决方案

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

cURL

JSON

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

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