Php is a beginner in php APIs. I know nothing about the APIs. I still don't know much about the APIs. please give me some easy-to-understand words to talk about the APIs, thank you.
Reply to discussion (solution)
Api
Application Programming Interface (Application Programming Interface) is a number of predefined functions to provide applications and developers with the ability to access a group of routines based on a software or hardware, without accessing the source code or understanding the details of the internal working mechanism. In addition to the meaning of "application interface", APIs also refer to API instructions and help documents.
Api
Application Programming Interface (Application Programming Interface) is a number of predefined functions to provide applications and developers with the ability to access a group of routines based on a software or hardware, without accessing the source code or understanding the details of the internal working mechanism. In addition to the meaning of "application interface", APIs also refer to API instructions and help documents.
I have read this, but I have never written it. my main question is: how do I define an api or what steps do I need to define an api?
Since you need to provide APIs for users, you need to plan well:
Call method: Function, XML-RPC, REST, web service ,.....
If the function method is used, you also need to install the support Library on the user side.
Parameter format: Includes the organization of incoming and outgoing data
Obviously, all APIs must follow the same rule.
The specific implementation is yours.
To put it bluntly, there are two types of php APIs. one is to copy the code into your own project and directly call it through some syntax rules, but the code will be directly exposed; another way is to submit some parameters like accessing a webpage and then obtain the result directly, but this requires the other party to open the server.