Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for calling open application programming interface (openapi)

A programming interface and application program technology, applied in the field of programming interface, can solve problems such as unsuccinct, inconvenient, and low efficiency of OpenAPI, and achieve the effect of simplifying the calling process and improving efficiency

Active Publication Date: 2014-04-02
HUAWEI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen from the above that due to the different communication mechanisms adopted by different OpenAPIs, the process for users to call OpenAPI to realize the open capability is extremely inconvenient and not concise, and the efficiency of calling OpenAPI is low. call

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
  • Method and device for calling open application programming interface (openapi)
  • Method and device for calling open application programming interface (openapi)
  • Method and device for calling open application programming interface (openapi)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0084] Such as Figure 2D As shown, another implementation manner of step 10c3 includes:

[0085] Step 10c31, assign a selection probability to each OpenAPI method according to the user applicability value corresponding to each OpenAPI method.

[0086] Among them, the OpenAPI calling device assigns different selection probabilities to each OpenAPI, and ensures that the selection probability assigned by the OpenAPI method with good performance is relatively large. That is to say, if the user usage value of the OpenAPI method is greater, the selection probability assigned to it by the OpenAPI calling device is greater. The sum of all selection probabilities assigned by the OpenAPI calling device is 1. Suppose there are n OpenAPI methods, which are arranged in ascending order: apiid1, apiid2, ..., apiidi, ..., apiidn, and the corresponding selection probabilities are p1, p2, ..., pi, ..., pn, where p1+p2+...+pi+...+pn=1. The n selection probabilities will divide into n+1 prob...

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

A method and a device for calling an Open Application Programming Interface (OpenAPI) are provided. The method includes: obtaining a target OpenAPI method corresponding to a calling request of a user; providing a parameter list corresponding to the target OpenAPI method to the user so as to obtain the parameter information of the target OpenAPI method; processing the calling for the target OpenAPI method according to the parament information and the calling rule matching with the target OpenAPI method. By adopting this technical solution, calling different OpenAPIs using a uniform mode can be realized, and the calling efficiency is improved.

Description

technical field [0001] Embodiments of the present invention relate to a programming interface technology, in particular to an Open Application Programming Interface (Open Application Programming Interface; OpenAPI for short) calling method and device. Background technique [0002] At present, there are a large number of open APIs (OpenAPIs) in the Internet (Internet), and users can call these OpenAPIs to implement corresponding functions by learning the description documents of the OpenAPIs. [0003] However, the communication protocols and calling methods adopted by different OpenAPIs are different. For users who directly call a certain function in OpenAPI, and for web application developers who use existing OpenAPI for secondary development, not only need to study OpenAPI documentation to understand the function and structure of OpenAPI as a whole, but also need to understand OpenAPI The communication mechanism adopted by the OpenAPI is learned, so that the OpenAPI can be...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/46
CPCG06F9/541
Inventor 金洪波颜友亮齐泉陈世展
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products