Joke Collection Website - Mood Talk - Who can tell me more about the API interface? Don't know how to understand it.

Who can tell me more about the API interface? Don't know how to understand it.

API: Application Program Interface (API: Application Program Interface)

Application Program Interface (is a set of definitions, programs and protocols that realizes the communication between computer software through Communicate with each other. One of the main functions of APIs is to provide a common set of functions. Programmers can avoid writing useless programs by using API functions to relieve programming tasks. APIs are also provided as middleware for various platforms. Data sharing.

APIs can be divided into four types based on the performance of data sharing between different software applications on a single or distributed platform:

Remote Procedure Call (RPC): Communication between programs is achieved through procedures (or tasks) acting on the shared data cache.

Standard Query Language (SQL): It is a standard query for accessing data. Language that enables data sharing between applications through a common database

File transfer: File transfer enables data sharing between applications by sending formatted files.

Information delivery: refers to small formatted information between loosely coupled or tightly coupled applications, and data sharing is achieved through direct communication between programs.

Current standards applied to APIs include the ANSI standard SQL API. There are also standards in development for other types of APIs that can be applied to all computer platforms and operating systems. These APIs connect data in different formats (such as shared data caches, database structures, file frames). ). Each data format requires different data commands and parameters for correct data communication, but also generates different types of errors. Therefore, in addition to having the knowledge required to perform data sharing tasks, these types of The API must also address many network parameter issues and possible error conditions, that is, each application must know whether it has strong performance to support inter-program communication. In contrast, since this API only handles one information format, so in this case. The information delivery API only provides a smaller subset of commands, network parameters, and error conditions. Because of this, the delivery API approach greatly reduces system complexity, so it is used when applications need to share data across multiple platforms. The information delivery API type is an ideal choice.

API is distinct from a graphical user interface (GUI) or a command interface: the API interface is an operating system or program interface, while the latter two are direct. User interface.