Joke Collection Website - Blessing messages - Api interface of music video station

Api interface of music video station

application program interface

Application programming interface (API) is a set of definitions, programs and protocols through which computer software can communicate with each other. One of the main functions of API is to provide a general function set. Programmers using API functions to develop applications can avoid writing useless programs, thus reducing programming tasks.

API is also a middleware, which provides data sharing for various platforms. According to the data sharing performance between different software applications on a single or distributed platform, APIs can be divided into four types:

Remote Procedure Call (RPC): The communication between programs is realized by the process (or task) that acts on the data buffer.

Standard Query Language (SQL): It is a standard query language for accessing data, and data sharing between applications is realized through a general database.

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

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

At present, the standards applied to API include ANSI standard SQL API. In addition, some standards applicable to other types are still being worked out. API can be applied to all computer platforms and operating systems. These APIs connect data in different formats (such as data buffers, database structures and file frames). Each data format requires different data commands and parameters to achieve correct data communication, but it also produces different types of errors. Therefore, in addition to the knowledge needed to perform data sharing tasks, these types of APIs must also solve many network parameter problems and possible error conditions, that is, each application must know whether it has strong performance to support inter-program communication. On the contrary, because this API only deals with one information format, the information delivery API in this case only provides a small subset of commands, network parameters and error conditions. Because of this, the delivery API greatly reduces the complexity of the system, so when the application needs to share data across multiple platforms, it is an ideal choice to adopt the information delivery API type.

There are obvious differences between API and GUI or command interface: API interface belongs to operating system or program interface, while the latter two belong to direct user interface.

Sometimes companies use API as their public open system. In other words, the company formulates its own system interface standard, and all members of the company can call the source code through this interface standard when they need system integration, customization, program application and other operations. This interface standard is called open API.