An API calling method and related device

By parsing and converting business parameters, cross-platform API calls are unified, which solves the problems of complex API interface docking and poor scalability in the existing technology, and improves API calling efficiency and system flexibility.

CN112749026BActive Publication Date: 2024-09-03KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011624349.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-09-03
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

The existing technology has compatibility issues and high workload when exchanging data between the server and multiple external API providers, resulting in complex interface docking, poor scalability, long repair response cycle, and affecting the flexibility and maintainability of the system.

Method used

Provide an API calling method by obtaining business instructions, parsing and converting parameters, using parameter conversion scripts to convert the first business parameters into supported second business parameters, sending a call request, and converting the results after receiving the response, achieving cross-platform API calls are unified and integrated, reducing the docking workload and response cycle.

Benefits of technology

It achieves the unification and expansion of the API calling process, simplifies business docking, shortens the interface docking cycle, improves the flexibility and security of the system, and reduces the code volume and maintenance difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112749026B
    Figure CN112749026B
Patent Text Reader

Abstract

The embodiment of the present application discloses an API calling method and related devices for calling the API of an external platform. The method of the embodiment of the present application includes: obtaining a business instruction; parsing the business instruction, determining a first business parameter included in the business instruction and a business platform API involved in the first business parameter; obtaining a parameter conversion script corresponding to the business platform, each of the parameter conversion scripts corresponding to an API data format; using the parameter conversion script, converting the first business parameter into a second business parameter supported by the business platform API; and sending a corresponding call request to the business platform API according to the second business parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an API calling method and related devices. Background Art

[0002] Application Programming Interface (API) is a kind of predefined network interface that enables computer software to communicate with each other, provides data sharing for various platforms, and performs data sharing between different software applications on a single or distributed platform.

[0003] In order to achieve data interoperability, when your server calls the API of an external platform, you often need to install the Software Development Kit (SDK) of the API provider to make the communication data format of both parties compatible. When the server connects to multiple API providers, you need to install the SDK packages of these external platforms on the server. If there is a compatibility issue between your server and the SDK package, you must wait for the external platform to be fixed. Summary of the invention

[0004] The embodiments of the present application mainly provide an API calling method and related devices for optimizing the external API calling process.

[0005] The first aspect of the present application provides an API calling method, comprising:

[0006] Get business instructions;

[0007] Parsing the service instruction, determining a first service parameter included in the service instruction and a service platform API involved in the first service parameter;

[0008] Obtain a parameter conversion script corresponding to the business platform, each of the parameter conversion scripts corresponding to an API data format;

[0009] Using the parameter conversion script, converting the first service parameter into a second service parameter supported by the service platform API;

[0010] According to the second business parameter, a corresponding call request is sent to the business platform API.

[0011] Optionally, the first business parameters include common parameters and difference parameters, the common parameters correspond to multiple business platform APIs, and the difference parameters correspond to a single business platform API.

[0012] Optionally, the method further comprises:

[0013] Receive a second service response returned by the service platform API;

[0014] Obtain the result conversion script corresponding to the business platform API;

[0015] The result conversion script is used to convert the second business response into a first business response.

[0016] Optionally, the method further comprises:

[0017] The first service parameters from multiple different service platforms are integrated to generate a service response corresponding to the service instruction.

[0018] Optionally, the parsing the service instruction to determine a first service parameter included in the service instruction and a service platform API involved in the first service parameter includes:

[0019] The first business parameter is parsed using a preset parameter processor to confirm the first business parameter and the business platform involved in the first business parameter, wherein the parameter processor stores the correspondence between the first business parameters of various business platforms and the business platform APIs.

[0020] Optionally, sending a corresponding call request to the business platform API according to the second business parameter includes:

[0021] Acquire an interface caller corresponding to the second business parameter, wherein the caller stores an API group corresponding to the second business parameter, and the API group includes interface names of multiple business platform APIs;

[0022] The interface caller is used to send a call request corresponding to the second service parameter in parallel to call the service platform API.

[0023] A second aspect of the present application provides an API calling device, the device comprising:

[0024] A first acquisition unit, used to acquire a service instruction;

[0025] A parsing unit, configured to parse the service instruction, and determine a first service parameter included in the service instruction and a service platform API involved in the first service parameter;

[0026] A second acquisition unit is used to acquire a parameter conversion script corresponding to the business platform, each of the parameter conversion scripts corresponding to an API data format;

[0027] A first conversion unit, configured to use the parameter conversion script to convert the first service parameter into a second service parameter supported by the service platform API;

[0028] A sending unit is used to send a corresponding call request to the business platform API according to the second business parameter.

[0029] Optionally, the device further comprises:

[0030] A receiving unit, configured to receive a second service response returned by the service platform API;

[0031] The third acquisition unit is used to obtain the result conversion script corresponding to the business platform API

[0032] The second conversion unit is configured to convert the second business response into a first business response by using the result conversion script.

[0033] Optionally, the device further comprises:

[0034] The fusion unit is used to fuse the first service parameters from multiple different service platforms to generate a service response corresponding to the service instruction.

[0035] A third aspect of the present application provides a computer device, including:

[0036] A processor and a memory, wherein the memory stores a computer program; the processor is connected to the memory; when the processor executes the computer program stored in the memory, the method described in any one of the first aspects is implemented.

[0037] A fourth aspect of the present application provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes any one of the methods of the first aspect.

[0038] It can be seen from the above technical scheme that the embodiment of the present application has the following advantages: In this scheme, an external interface system is set up on the server of the party. When it is necessary to call an external API, the parameters to be obtained are first parsed through a unified parameter processor, and the data format of the parameters is changed according to different platforms to adapt to the API access requirements of different platforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a schematic diagram of an embodiment of the API calling method in this application;

[0040] Figure 2 This is a schematic diagram of an embodiment of the API calling method in this application;

[0041] Figure 3 This is a schematic diagram of an embodiment of the API calling method in this application;

[0042] Figure 4This is a schematic diagram of an embodiment of the API calling method in this application;

[0043] Figure 5 It is a schematic diagram of an embodiment of an API calling device in this application;

[0044] Figure 6 It is a schematic diagram of an embodiment of a computer device in the present application. DETAILED DESCRIPTION

[0045] At present, there are two main ways for ERP products to connect to external systems (such as e-commerce platforms, logistics platforms, etc.):

[0046] (1) Use the SDK provided by the external system platform for docking

[0047] (2) Encapsulate the interfaces for connecting to different external systems with your own code and parse the results returned by the interfaces

[0048] If you use SDK for docking, the potential risk is high. Although the workload of docking is reduced to a certain extent, from the perspective of flexibility, scalability and security, the SDK itself is a black box with a lot of permissions, and the interface is basically not scalable. Once there is a problem with the SDK itself, the repair response cycle is very long, which will lead to uncontrollability. If you use the self-encapsulated interface method, due to the large differences in the interfaces of the major external systems, generally speaking, you have to adopt multiple sets of interface systems, and the different interfaces of different external systems have poor readability. It is very troublesome to implement business analysis of the returned results, and the workload of docking is huge; as the number of docked external systems increases, the increase in differences will lead to an explosive growth in the amount of code, and the scalability and maintainability will be reduced, which is not conducive to the sustainable development of the product.

[0049] The embodiment of the present application provides an API calling method, which can unify the interface forms and calling methods of various external systems, enhance or combine their interfaces, and redefine interface input parameters and results according to business needs, making business docking more convenient, with shorter cycles and less workload, and is used to build a set of high-security API calling systems on one's own server that can be tailored, easy to understand, and easy to expand. For details, please refer to Figure 1 , the API calling method of this application includes:

[0050] 101. Obtain business instructions;

[0051] The server receives the business instruction and starts the task corresponding to the instruction to realize the corresponding business. For different enterprises and individuals, specific businesses can be defined by themselves, such as price inquiry, product purchase, log upload, etc., which can be any behavior involving data communication. A business instruction can include tasks to call APIs of multiple different external platforms, as well as instructions that need to be sent to the API when calling these external APIs.

[0052] 102. Parse the service instruction to determine a first service parameter included in the service instruction and a service platform API involved in the first service parameter;

[0053] The server of the party parses the business instruction and obtains the first business parameters required to implement the business. The format of these first business parameters can be defined according to the data format of the party, which is convenient for the developers of the party to develop supporting software programs for it, or adapt to the existing software programs of the party. Preferably, the first business parameters can adopt the domain-driven development mode to facilitate the developers to understand and edit, for example, the Price parameter represents the original price of the product, and the Sku parameter represents the inventory of the product.

[0054] 103. Obtain a parameter conversion script corresponding to the business platform API;

[0055] Obtain the parameter conversion script corresponding to the business platform API. Usually, a parameter conversion script is configured for each business API data format to convert the data format of this type. In particular, if the data format adopted by some external platforms is the same as the first business parameter data format of the server, there is no need to configure the parameter conversion script. In addition, there may be a situation where the first business parameters of the APIs of multiple platforms use the same data format. In this case, these business platform APIs with the same data format can share the same parameter conversion script.

[0056] 104. Use the parameter conversion script to convert the first service parameter into a second service parameter supported by the service platform API;

[0057] According to the data format of the first parameter, the parameter conversion script obtained in step 103 is used to convert the data format of these first parameters to obtain the second business parameter that meets the API requirements of the business platform. The second business parameter is defined by the external business platform. If you want to call the interface of these external business platforms, you need to use the data format of the external business platform. For example, in the first business parameter, the Price parameter is used to represent the original price of the commodity, and the prime cost parameter is used to represent the original price of the commodity on business platform A, and the original price parameter is used to represent the original price of the commodity on business platform B. Then, the parameter conversion script corresponding to business platform A will be used to convert the Price parameter into the prime cost parameter, and the parameter conversion script corresponding to business platform B will be used to convert the Price parameter into the Original price parameter. In addition, if the data format of the first business parameter and the second business parameter is different, the parameter conversion script is also required to transform the data format. For example, the first business parameter uses an interface document in the form of Json, and the second business parameter of business platform B uses an interface document in the form of XML, then the parameter conversion script corresponding to business platform B is required to implement the conversion process.

[0058] 105. According to the second business parameter, send a corresponding call request to the business platform API.

[0059] According to the content of the second business parameter, send the corresponding call request to each business platform API. For example, send the call request of the prime cost parameter in step 104 to the specified API of business platform A, and send the call request of the original price parameter in step 104 to the specified API of business platform B. It should be noted that the two second parameter call examples listed in this embodiment are only used to help those skilled in the art understand this solution. In actual applications, the second business parameter that can be sent by the server can involve any business platform API, and the number of API requests sent to each business platform can also vary, depending on the needs of the business instructions.

[0060] based on Figure 1 In another embodiment, the process of the external platform returning a business response is also shown. Figure 2 , the steps of this embodiment may include:

[0061] 201. Obtain business instructions;

[0062] 202. Parse the service instruction to determine a first service parameter included in the service instruction and a service platform API involved in the first service parameter;

[0063] 203. Obtain a parameter conversion script corresponding to the service platform API;

[0064] 204. Use the parameter conversion script to convert the first service parameter into a second service parameter supported by the service platform API;

[0065] 205. Send a corresponding call request to the business platform API according to the second business parameter;

[0066] 206. Receive a second service response returned by the service platform API;

[0067] A second business response returned by the external business platform is received, wherein the content of the second business response is the operation result of the API of the external business platform calling the relevant program in the API according to the second business parameter sent in step 205. The second business response is a response made by the external business platform to the API call request, and is usually in the form of an interface document in XML or JSON format, but the specific data format or data form may be different from the second business parameter.

[0068] 207. Obtain a result conversion script corresponding to the business platform API;

[0069] Obtain the result conversion script corresponding to the business platform. Similar to the parameter conversion script, each business API data format is usually configured with a parameter conversion script for converting the data format of that type. In addition, if there are multiple platform APIs that return the second business response in the same data format, then these business platform APIs with the same data format can share the same result conversion script.

[0070] 208. Use the result conversion script to convert the second business response into a first business response;

[0071] Use the result conversion script corresponding to the second business parameter to convert the second business parameter response into the first business response that conforms to the data format of the user. Similar to the working principle of the parameter conversion script, if the data format of the first business parameter and the second business parameter are different, the result conversion script also needs to transform the interface document format of the second business parameter.

[0072] 209. The first service parameters from multiple different service platforms are integrated to generate a service response corresponding to the service instruction.

[0073] Step 209 is an optional step. After calling the APIs of multiple external business platforms according to the business instruction, the server can wait for each business platform to return a second business response, convert it into a first business response, and then integrate these business responses as the execution result of the business instruction.

[0074] based on Figure 1 The embodiment shown, Figure 3 The illustrated embodiment also shows a more specific implementation of the API calling method, including:

[0075] 301. Obtain business instructions;

[0076] The server receives the business instruction and starts the task corresponding to the instruction to realize the corresponding business. For different enterprises and individuals, specific businesses can be defined by themselves, such as price inquiry, product purchase, log upload, etc., which can be any behavior involving data communication. A business instruction can include tasks to call APIs of multiple different external platforms, as well as instructions that need to be sent to the API when calling these external APIs.

[0077] 302. Use a preset parameter processor to parse the first business parameter to confirm the first business parameter and the business platform involved in the first business parameter, wherein the parameter processor stores the correspondence between the first business parameters of various business platforms and the business platform APIs.

[0078] A parameter processor component is preset, which stores the first business parameters that need to be called when executing each business instruction, as well as the business platforms involved in these first parameters. Preferably, these first parameters can be divided into public parameters and differential parameters. For example, the content of a business instruction is to query the price of a product. The price of the product on platform A is 90; the price of the product on platform B is 100; and the price of the product on platform C is 95, but platform C also provides a member discount price of 88; therefore, the non-member price of the product can be represented by the public parameter of Price, and the member discount price can be represented by the differential parameter of Vip Price. The public parameter will call the API on multiple business platforms involved in the business instruction and return a response, while the differential parameter will only call the API on a specific business platform and return a corresponding response. Distinguishing between public parameters and differential parameters is conducive to the development and expansion of the business by one's own developers, reducing the workload of developers, and there is no need to develop supporting software programs for the public parameters of different platforms.

[0079] 303. Obtain a parameter conversion script corresponding to the business platform API;

[0080] Obtain a parameter conversion script of the business platform, which corresponds to a data format of a business platform API and records the conversion relationship between a first business parameter and a second business parameter of the business platform. The conversion relationship may include not only parameter data format conversion, but also data format conversion, such as converting XML format parameters into JSON format for storage.

[0081] 304. Use the parameter conversion script to convert the first service parameter into a second service parameter supported by the service platform API;

[0082] The parameter conversion script corresponding to the service platform API is used to convert the first service parameter originally adapted to C into the second service parameter adapted to the service platform API. It is understandable that there may be some service platforms with the same data format as the server, and the API of such service platforms can be directly called using the first service parameter. It can be understood that these service platforms have completed the process of converting the first service parameter into the second service parameter, which does not conflict with the solution of this embodiment.

[0083] 305. Obtain an interface caller corresponding to the second business parameter, wherein the caller stores an API group corresponding to the second business parameter, and the API group includes interface names of multiple business platform APIs;

[0084] An interface caller is set up on the server. Each interface caller is adapted to an API group. The call process of each interface in the API group is saved in the interface caller. An API group refers to a group formed by integrating multiple API objects. For example, the price query APIs of multiple different business platforms are set as a group, or the APIs for querying product prices, inventory, and tax rates on a single platform are set as a group. The specific grouping rules can be defined according to the needs of developers and are not limited here.

[0085] 306. Use the interface caller to send a call request corresponding to the second service parameter in parallel to call the service platform API;

[0086] The interface caller is enabled according to the second business parameter, and the call request of the http protocol is sent to each API of the business platform according to the configuration in the interface caller. These business platform APIs can belong to the same business platform or to multiple different business platforms. The role of the interface caller is to integrate some APIs that are closely related to the calling process, which is convenient for development and maintenance in the system. If the rules of a certain API need to be changed, only the interface caller corresponding to the API can be maintained, while other interface callers run normally. Preferably, the interface caller can also call these business platform APIs in parallel to improve the response speed.

[0087] Figure 4 This is a flowchart of the API calling method. You can see that Figure 3The illustrated embodiment further improves the API calling method and integrates a portion of the API calling process. Compared with the existing API calling process, it is less difficult to maintain and upgrade, and is more convenient for technical personnel to perform domain-driven development.

[0088] In the present invention, the preferred implementation of the script engine required for running the parameter conversion script and the result conversion script is to use a domain-specific language (DSL) to design a corresponding development script engine. Compared with some current general script engines, using DSL to develop a script engine has the following advantages:

[0089] 1) Can be cut

[0090] The language features can be enabled or customized features can be added according to the requirements of the use environment. For example, when a script from outside the system needs to be executed in the invention, the loop and customized function mechanism in the script can be cancelled to avoid the dead loop in the script causing server overload.

[0091] 2) Security

[0092] Many script engines provide a mechanism for directly accessing Class and Method in the Java environment. When an untrusted script needs to be executed on the server, it is difficult to prevent malicious access to the script if such a script engine is used. However, the script engine of this solution can set the resources that the script can access according to the DSL, which improves the security of the script engine. Resources that are not provided through the script context environment are invisible to the script.

[0093] 3) Easy to understand

[0094] DSL is a process-oriented language. Scripts written in DSL are easy to understand. It does not provide object-oriented features, so the runtime behavior of the script is also easy to predict. The variable scope relationship is simple, using a single runtime context environment, and the variable access method is clear and unambiguous.

[0095] 4) Easy to expand

[0096] In the present invention, new features can be added to the target engine from multiple levels such as constant values, system variables, data types, runtime functions, compile-time functions, and syntax analyzers. For example, packaging a database table as a Repository object can greatly simplify the way to access the database in a script, and provide partial or complete variable type support for script execution through external variable type declaration and runtime environment access control.

[0097] Corresponding to the above method, Figure 5 An API calling device is also provided, which is used to implement the above API calling method. The device includes:

[0098] A first acquisition unit 501 is used to acquire a service instruction;

[0099] A parsing unit 502, configured to parse the service instruction, and determine a first service parameter included in the service instruction and a service platform API involved in the first service parameter;

[0100] The second acquisition unit 503 is used to acquire a parameter conversion script corresponding to the business platform, each of the parameter conversion scripts corresponding to an API data format;

[0101] A first conversion unit 504 is used to convert the first service parameter into a second service parameter supported by the service platform API using the parameter conversion script;

[0102] The sending unit 505 is used to send a corresponding call request to the business platform API according to the second business parameter.

[0103] Optionally, the device further comprises:

[0104] A receiving unit 506, configured to receive a second service response returned by the service platform API;

[0105] The third acquisition unit 507 is used to acquire the result conversion script corresponding to the business platform API

[0106] The second conversion unit 508 is configured to use the result conversion script to convert the second business response into a first business response.

[0107] Optionally, the device further comprises:

[0108] The fusion unit 509 is used to fuse the first service parameters from multiple different service platforms to generate a service response corresponding to the service instruction.

[0109] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, so that when the processor executes the computer program in the memory, the aforementioned Figures 1 to 3 A method corresponding to any of the embodiments shown. Figure 6, the computer device may include one or more central processing units (CPU) 601 and a memory 605, in which one or more application programs or data are stored. Among them, the memory 605 can be a volatile storage or a persistent storage. The program stored in the memory 605 may include one or more modules, and each module may include a series of instruction operations in the computer device. Furthermore, the central processor 601 can be configured to communicate with the memory 605 and execute a series of instruction operations in the memory 605 on the computer device 600. The computer device 600 may also include one or more power supplies 602, one or more wired or wireless network interfaces 603, one or more input and output interfaces 604, and / or, one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc. The central processor 601 can execute the aforementioned Figures 1 to 3 The corresponding operations in the embodiment shown are not described in detail here.

[0110] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a computer, Figures 1 to 3 The method flow in any of the embodiments shown.

[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0112] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0114] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. An API calling method, characterized in that: include: Get business instructions; Parse the business instruction to determine a first business parameter included in the business instruction and a business platform API involved in the first business parameter; the first business parameter includes a common parameter and a difference parameter, the common parameter corresponds to multiple business platform APIs, and the difference parameter corresponds to a single business platform API; Obtaining a parameter conversion script corresponding to the business platform, each of the parameter conversion scripts corresponding to an API data format, the API data format recording a conversion relationship between the first business parameter and a second business parameter of the business platform, the conversion relationship including parameter data format conversion; The first business parameter is converted into a second business parameter supported by the business platform API using the parameter conversion script; and a corresponding call request is sent to the business platform API according to the second business parameter.

2. The API calling method according to claim 1, characterized in that: The method further comprises: Receive a second service response returned by the service platform API; Obtain the result conversion script corresponding to the business platform API; The result conversion script is used to convert the second business response into a first business response.

3. The API calling method according to claim 2, characterized in that: The method further comprises: The first service parameters from multiple different service platforms are integrated to generate a service response corresponding to the service instruction.

4. The API calling method according to claim 3, characterized in that: The parsing the service instruction to determine the first service parameter included in the service instruction and the service platform API involved in the first service parameter includes: The first business parameter is parsed using a preset parameter processor to confirm the first business parameter and the business platform involved in the first business parameter, wherein the parameter processor stores the correspondence between the first business parameters of various business platforms and the business platform APIs.

5. The API calling method according to claim 4, characterized in that: The sending a corresponding call request to the business platform API according to the second business parameter includes: Acquire an interface caller corresponding to the second business parameter, wherein the caller stores an API group corresponding to the second business parameter, and the API group includes interface names of multiple business platform APIs; The interface caller is used to send a call request corresponding to the second service parameter in parallel to call the service platform API.

6. An API calling device, characterized in that: include: A first acquisition unit, used to acquire a service instruction; A parsing unit, configured to parse the business instruction, determine a first business parameter included in the business instruction and a business platform API involved in the first business parameter; the first business parameter includes a common parameter and a difference parameter, the common parameter corresponds to multiple business platform APIs, and the difference parameter corresponds to a single business platform API; A second acquisition unit is used to acquire a parameter conversion script corresponding to the service platform, each of the parameter conversion scripts corresponds to an API data format, and the API data format records a conversion relationship between the first service parameter and a second service parameter of the service platform, wherein the conversion relationship includes parameter data format conversion; A first conversion unit, configured to use the parameter conversion script to convert the first service parameter into a second service parameter supported by the service platform API; A sending unit is used to send a corresponding call request to the business platform API according to the second business parameter.

7. The API calling device according to claim 6, characterized in that: The device also includes: A receiving unit, configured to receive a second service response returned by the service platform API; The third acquisition unit is used to obtain the result conversion script corresponding to the business platform API The second conversion unit is configured to convert the second business response into a first business response by using the result conversion script.

8. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program; the processor is connected to the memory; When the processor executes the computer program stored in the memory, the method according to any one of claims 1 to 5 is implemented.

9. A computer storage medium, characterized in that The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 5.

10. A computer program product, characterized in that The method comprises several instructions for causing a computer to execute the method according to any one of claims 1 to 5.