Application program interface calling method and device, storage medium and electronic device

A technology of application programming interface and target application, which is applied in the field of storage media and electronic devices, application programming interface calling methods and devices, and can solve the problems of not realizing the dynamic control of API return data, etc.

Pending Publication Date: 2021-12-31
ZTE CORP
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides an application program interface calling method and device, a storage medium and an electronic device, so as to at least solve the problem in the related art that the dynamic control of API return data is not realized

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
  • Application program interface calling method and device, storage medium and electronic device
  • Application program interface calling method and device, storage medium and electronic device
  • Application program interface calling method and device, storage medium and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Embodiments of the present invention will be described in detail below with reference to the drawings and in combination with the embodiments.

[0019] It should be noted that the terms "first" and "second" in the description and claims of the embodiments of the present invention and the above drawings are used to distinguish similar objects, but not necessarily to describe a specific order or sequence order.

[0020] The method embodiments provided in the embodiments of the present application may be executed in mobile terminals, computer terminals or similar computing devices. Taking running on a mobile terminal as an example, figure 1 It is a block diagram of the hardware structure of a mobile terminal for calling a method of an application program interface according to an embodiment of the present invention. Such as figure 1 As shown, the mobile terminal may include one or more ( figure 1 Only one is shown in the figure) processor 102 (processor 102 may include...

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 embodiment of the invention provides an application program interface calling method and device, a storage medium and an electronic device. The method comprises the steps of obtaining a first application program interface API calling request sent by a target application, wherein the first API calling request is used for requesting to call a first API, and the first API calling request carries a first user identifier; obtaining a first data range of a first API ordered by the first user identifier in advance, wherein the first data range of the first API comprises a first target dimension under the first API and a target parameter under the first target dimension; obtaining first API return data corresponding to the first data range of the first API; and sending the first API return data to the target application. Through the embodiment of the invention, the problem that the dynamic control of the API return data is not realized is solved, so that the effect of dynamically controlling the API return data is achieved.

Description

technical field [0001] Embodiments of the present invention relate to the communication field, and in particular, relate to a method and device for invoking an application program interface, a storage medium, and an electronic device. Background technique [0002] In the prior art, for a capability API, the range of data returned by the API cannot be dynamically controlled. At present, the data returned by the API can only be controlled statically, that is, different APIs are defined for different data ranges, and the caller obtains data of different ranges by calling different APIs. [0003] That is to say, the dynamic control of the data returned by the API is not implemented in the prior art. Contents of the invention [0004] Embodiments of the present invention provide a method and device for invoking an API, a storage medium, and an electronic device, so as to at least solve the problem in the related art that dynamic control of data returned by an API is not implem...

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): G06F9/54
CPCG06F9/547G06F9/54G06F9/541
Inventor 龙卉陈坚刘宇王彬
Owner ZTE CORP
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