Php api-php Tutorial

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.