How does php interface? What is the idea? How does php interface? What is the idea? This is the kind of data returned by calling the interface. my colleague has done it in other languages, so that I can request the interface. I have never understood what this excuse is? Json data is returned. how can I use php for this excuse?
Reply to discussion (solution)
My colleague won't tell you how to request his interface address (www.xxx.com/index.php? M = api & c = controler & a = getData ),
He should also tell you whether to use get or post requests. if the data type tells you that it is json, ask him if he doesn't understand it.
In my understanding, the interface should be a class, which contains some functions, which are processed through your passing parameters and then returned to you, the returned type is JSON, which is actually the same as that of a common function. New users understand it. do not try it if any error occurs.
If it is a get request, I put the parameter on the url. what if it is a post request? How can I give my data to him,