API (Application Program Interface) calling method and device

A technology of API interface and configuration list, which is applied in the computer field, can solve the problems of long time-consuming interface docking, multi-coding time, and low interface call efficiency, and achieve the effects of reducing failover time, improving technical effects, and improving interface call efficiency

Pending Publication Date: 2022-06-03
BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the existing API interface calling method, the coding in the calling process is relatively complicated, which takes up a lot of coding time, resulting in a long time-consuming interface docking; at the same time, the interface provider usually deploys in multiple regions and multiple computer rooms. If the calling process In the case of a failure in one computer room, it needs to be transferred to another computer room. During this period, many failovers are required and the time is long, resulting in low interface call efficiency and poor user experience.

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 (Application Program Interface) calling method and device
  • API (Application Program Interface) calling method and device
  • API (Application Program Interface) calling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

[0045] figure 1 is a schematic diagram of the main process of an API interface calling method provided according to an embodiment of the present invention; as figure 1 As shown, the API interface calling method provided by the embodiment of the present invention mainly includes:

[0046] Step S101, in response to the startup of the software development kit deployed on the cl...

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 (Application Program Interface) calling method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: in response to starting of a software development kit deployed at a client, obtaining a domain name configuration list; wherein the domain name configuration list comprises a plurality of domain name addresses and API interfaces corresponding to the domain name addresses; calling the API interfaces in the domain name configuration list in sequence, and determining a target domain name address according to a feedback result; and calling an API interface corresponding to the target domain name address, and carrying out corresponding service processing. According to the embodiment, the fault transfer time needed when the fault occurs is shortened, the interface calling efficiency is improved, and the user experience is improved.

Description

technical field [0001] The present invention relates to the technical field of computers, and in particular, to a method and device for invoking an API interface. Background technique [0002] In the current data transmission between systems on the Internet, most of the methods are through API (Application Programming Interface, application programming interface) interface calls for interaction. Among them, the current mainstream forms of API interface calls are HTTP, webService And RPC calls using various protocols between intranets. [0003] If the two parties of the data transmission use the API interface calling method, they are currently implemented based on the HTTP method, such as directly using the HTTP or HTTPS method, or the WebService protocol to call, and its essence is still based on the HTTP protocol. The HTTP protocol requires the standard interface to conform to: http: / / domain name:port / request path, and the target system can be accurately requested through ...

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 Applications(China)
IPC IPC(8): H04L67/02H04L61/4511H04L9/40H04L41/0668H04L41/082
CPCH04L67/02H04L63/0428H04L41/0668H04L41/082H04L67/34
Inventor 张世博
Owner BEIJING JINGDONG TUOXIAN TECH CO 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