API-based method for sending and receiving information, API-based apparatus, and API-based system

A technology for sending information and API interface, which is applied in the field of information processing and can solve the problems of client request failure, occupation, and the limited ability of the terminal to run the client.

Active Publication Date: 2014-06-04
ALIBABA GRP HLDG LTD
View PDF4 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For the server, it receives the API service information request sent by the client, and then determines the operation object of the client request operation according to the parameter value contained in the API service information request, and processes the received API service information request, and sends the client The information requested by the client is sent to the client. If the parameter value carried in the API service information request sent by the client is inconsistent with the parameter value corresponding to the API locally supported by the server, the server generally refuses to process the API service information request. , even if the received API service information request is processed, because the parameter value it carries is inconsistent with the parameter value recorded by the server, the processing will fail, which will lead to the failure of the client's request
At present, during the normal operation of the client, the cause of API request failure is mainly the API supported by the current version of the client and the attribute information saved corresponding to the API, and the latest version of the client’s API supported by the server and the corresponding Caused by inconsistencies in attribute information
[0004] In practical applications, if the API and attribute information are updated, the server will generally notify the client to perform the corresponding update. However, the process of updating based on the client in the prior art involves t...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • API-based method for sending and receiving information, API-based apparatus, and API-based system
  • API-based method for sending and receiving information, API-based apparatus, and API-based system
  • API-based method for sending and receiving information, API-based apparatus, and API-based system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] Embodiment 1 of this application proposes a method for sending information based on API, such as figure 1 As shown, the specific process is as follows:

[0027] Step 11, the client receives the operation request sent by the terminal user, and determines the service API corresponding to the terminal user's operation.

[0028] Wherein, the terminal user activates the client terminal installed in the mobile terminal through operations, and after the client terminal is activated, the terminal user operates the client terminal to initiate an operation instruction.

[0029] Step 12: After determining the service API corresponding to the terminal user's operation request, the client determines the attribute information corresponding to the service API according to the API interface dictionary that records the attribute information of the service API.

[0030] Wherein, the API interface dictionary records attribute information of the service API. The API interface dictionary ...

Embodiment 2

[0062] Embodiment 2 of this application proposes a method for receiving information based on API, such as image 3 As shown, the specific process is as follows:

[0063] Step 31, the server receives requests from the client to call APIs in the parameter value acquisition path in sequence.

[0064] Among them, when the client determines that the parameter value corresponding to the API parameter of the service API is not recorded in the context of the locally saved parameter value, it will sequentially call the parameters in the parameter value acquisition path according to the API interface dictionary that records the attribute information of the service API. For an API request, the attribute information includes API parameters and their parameter value acquisition path, and the parameter value acquisition path includes the calling sequence of one or more service APIs.

[0065] Step 32, the server obtains the API requests in the path according to the parameter value, and send...

Embodiment 3

[0080] Furthermore, Embodiment 3 of the present application here is based on the above-mentioned Embodiment 1 and Embodiment 2, and takes the client sending information based on the API and the server receiving information based on the API as a whole process to elaborate on the process proposed here in this application. API-based methods for sending and receiving information, such as Figure 5 As shown, the embodiment of the present application here proposes an API-based system, the system includes a client and a server, wherein:

[0081] The client is installed in a terminal, such as a mobile terminal, or a network terminal, etc. It is used to determine the service API corresponding to the operation request of the end user; according to the API interface dictionary recording the attribute information of the service API, determine the attribute information corresponding to the service API, and the attribute information includes API parameters and parameter value acquisition pa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an API-based method for sending and receiving information, an API-based apparatus, and an API-based system. The method comprises: a client determining a service API corresponding to the operation request of a terminal user; according to an API dictionary which records the attribute information of the service API, determining the attribute information corresponding to the service API, and determining whether the context of a parameter value locally stored by the client records a parameter value corresponding to the API parameter of the service API; when the context of the parameter value locally stored by the client does not record the parameter value corresponding to the API parameter of the service API, according to a parameter value obtaining path, sending a server end a request for sequentially scheduling APIs in the parameter value obtaining path; and receiving the return value of the server end, and according to the return value, constructing an API service request corresponding to the service API and sending the API service request to the server end. According to the invention, the real-time performance of API updating can be better improved, and the processing resources are saved.

Description

technical field [0001] The present application relates to the technical field of information processing, and in particular to a method, device and system for sending and receiving information based on an application programming interface (API, Application Programming Interface). Background technique [0002] With the rapid development of network technologies, network servers can provide more and more services to terminal users through terminals. In practical applications, the server provides application services for end users, mainly by installing and running a client application program (hereinafter referred to as client) with specified functions on the terminal to provide application services for end users. Services provided to terminals. During the running process, the client mainly sends an API service information request to the server through the API and attribute information agreed with the server (where the server is set in the server). Among them, the API is used to...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08
Inventor 张毅
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products