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

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 application program interface. The third-party service cannot call the API of the IoT platform, which will cause the API of the IoT platform to be incompatible with the API of the third-party service, and affect the data access between the IoT platform and the third-party service

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

Embodiment 1

[0051] see figure 1 , figure 1 It is an implementation flowchart of an application programming interface calling method in an embodiment of the present invention, and the method may include the following steps:

[0052] S101: Receive an application program interface invocation request, analyze the application program interface invocation request, and obtain an application program interface to be invoked and a corresponding application program name.

[0053] The IoT platform, various third-party services, etc. can pre-register the visitor as a subscriber role to the API Gateway Store of the accessed party to create the application that needs to be accessed according to the actual data access requirements. 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, you can request the accessed The object's data access m...

Embodiment 2

[0064] see figure 2 , figure 2 It is another implementation flowchart of the application programming interface calling method in the embodiment of the present invention, and the method may include the following steps:

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

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

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

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

Embodiment 3

[0075] see image 3 , image 3 It is another implementation flowchart of the application programming interface calling method in the embodiment of the present invention, and the method may include the following steps:

[0076] S301: Receive an application program interface invocation request, analyze the application program interface invocation request, and obtain an application program interface to be invoked and a corresponding application program name.

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

[0078] Among them, the API gateway storage access token is obtained by the request sender 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 will create a client (Client) for authorization authentication for the application,...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products