Application program interface calling method, device and apparatus and readable storage medium

A technology of application program interface and application program name, which is applied in the direction of multi-channel program device, program control device, program control design, etc., and can solve problems such as inability to call third-party services, incompatibility of application program interfaces, and inconsistent interface design

Active Publication Date: 2020-02-14
CHENGDU SKSPRUCE TECH
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Both the IoT platform and third-party services provide APIs for data access. Between the IoT platform and third-party services, a third-party service and When another third-party service needs to access data, it can be completed by calling each other's applicatio

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

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0050] Example one:

[0051] See figure 1 , figure 1 This is an implementation flow chart of the application program interface calling method in the embodiment of the present invention. The method may include the following steps:

[0052] S101: Receive an application program interface call request, parse the application program interface call request, and obtain the application program interface to be called and the corresponding application program name.

[0053] Internet of Things platform, various third-party services, etc., according to actual data access requirements, the visitor can be used as a subscriber to log in to the API Gateway Store of the visited party in advance to create an application that needs to be accessed. When the IoT platform needs to access data from a third-party service, or a third-party service needs to access data from another third-party service, or a third-party service needs to access data from the IoT platform, it can be accessed The data access man...

Example Embodiment

[0063] Embodiment two:

[0064] See figure 2 , figure 2 This is another implementation flowchart of the application program interface invocation method in the embodiment of the present invention, and the method may include the following steps:

[0065] S201: Receive an application program interface call request, analyze the application program interface call request, and obtain the application program interface to be called and the corresponding application program name.

[0066] S202: Obtain permission authentication information sent by the request sender of the application program interface call request.

[0067] The permission authentication process before calling the application program interface can be preset, and after receiving the application program interface calling request, the permission authentication information sent by the request sender of the application program interface calling request can be obtained.

[0068] S203: Perform a verification operation on the authority...

Example Embodiment

[0074] Embodiment three:

[0075] See image 3 , image 3 This is another implementation flowchart of the application program interface invocation method in the embodiment of the present invention, and the method may include the following steps:

[0076] S301: Receive the application program interface call request, parse the application program interface call request, and obtain the application program interface to be called and the corresponding application program name.

[0077] S302: Obtain the API gateway storage access token corresponding to the application name sent by the request sender.

[0078] Wherein, the API gateway stores the access token as the request sender obtains it from the API gateway storage through the pre-generated user public key and user private key corresponding to the application name.

[0079] After the IoT platform or third-party service creates an application, the system creates a client for permission authentication for the application, and generates a use...

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 application program interface calling method, which comprises the following steps of: receiving an application program interface calling request, and analyzing the application program interface calling request to obtain an application program interface to be called and a corresponding application program name; judging whether the to-be-called application program interface is an Internet of Things platform application program interface or not; if yes, searching an application identifier and an application private key corresponding to the application name from a remotedictionary service database, obtaining a corresponding Internet of Things platform access token by utilizing the application identifier and the application private key, and calling a to-be-called application interface by utilizing the Internet of Things platform access token; and if not, calling the to-be-called application program interface. According to the invention, the mutual compatibility of the application program interface of the Internet of Things platform and the application program interface of the third-party service is realized, and the influence on data access between the Internet of Things platform and the third-party service is avoided. The invention further discloses an application program interface calling device and equipment and a storage medium, and the correspondingtechnical effects are achieved.

Description

technical field [0001] The present invention relates to the field of computer application technology, in particular to an application programming interface calling method, device, equipment and computer-readable storage medium. Background technique [0002] Both the IoT platform and third-party services provide application programming interface APIs for data access. When data access is required between the IoT platform and third-party services, or between a third-party service and another third-party service, it can be accessed through Call each other's application program interface to complete, but because the interface design of the application program interface of the IoT platform and the conventional third-party service application program interface is not uniform, the third-party service cannot call the application program interface of the Internet of Things platform, resulting in the Internet of Things The API of the platform is not compatible with the API of the third...

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): G06F9/448G06F9/54
CPCG06F9/4482G06F9/547
Inventor 程才力李屏君
Owner CHENGDU SKSPRUCE TECH
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