Home  >  Article  >  Backend Development  >  PHP做接口,向安卓客户端提供数据,id、name等,如何实现

PHP做接口,向安卓客户端提供数据,id、name等,如何实现

WBOY
WBOYOriginal
2016-06-23 13:50:39820browse

PHP做接口,向安卓客户端提供数据,id、name等,如何实现


回复讨论(解决方案)

你只要知道需要什么样格式的数据就可以了

一般还是JSON,XML吧。

先做一个验证权限,然后,通过接口,把HTTP://后台数据转换成JSON发给安桌和IOS端,他们用的是相同的接口,也就是说你写一个可以两个共用

需要什么数据通过json传递过去就可以了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn