CN116260852A - Calling method, equipment and medium for third party service - Google Patents

Calling method, equipment and medium for third party service Download PDF

Info

Publication number
CN116260852A
CN116260852A CN202211101021.3A CN202211101021A CN116260852A CN 116260852 A CN116260852 A CN 116260852A CN 202211101021 A CN202211101021 A CN 202211101021A CN 116260852 A CN116260852 A CN 116260852A
Authority
CN
China
Prior art keywords
interface
application
party service
party
output platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211101021.3A
Other languages
Chinese (zh)
Inventor
李栋绪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur IGO Cloud Chain Information Technology Co Ltd
Original Assignee
Shandong Inspur IGO Cloud Chain Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur IGO Cloud Chain Information Technology Co Ltd filed Critical Shandong Inspur IGO Cloud Chain Information Technology Co Ltd
Priority to CN202211101021.3A priority Critical patent/CN116260852A/en
Publication of CN116260852A publication Critical patent/CN116260852A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method, equipment and medium for calling a third party service, which are used for solving the technical problems that the prior art cannot manage the authority of the open third party service, the pressure of an open platform is high, and the user experience is poor. The method comprises the following steps: adding a plurality of third party services on an interface comprehensive output platform according to the determined interface information of the plurality of third party services; when a user submits an application registration request to the interface comprehensive output platform, generating a corresponding application account in the interface comprehensive output platform and distributing a secret key; opening a corresponding third party service to be invoked for an application account with a secret key and generating a corresponding temporary token; receiving a call request for realizing the third party service to be called through an interface comprehensive output platform, and checking the call request; and under the condition that verification is passed, sending a calling request to the corresponding third party service to be called so that the third party service to be called responds to the calling request, and calling the third party service to be called by the application account is realized.

Description

Calling method, equipment and medium for third party service
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for invoking a third party service.
Background
With rapid development of internet technology and expansion of services, service ranges provided by various third party service providers are increasing, service types are increasing, and many services are reusable, for example: reusable public services such as corporate employee basic information, corporate vendor basic information, and the like. At present, each third party service is developed by different project groups and developers, and each third party service needs to write the same code to realize the same interface and service, so that the development time cost is increased, and the accuracy of the code cannot be ensured.
Although each project group and developer can provide partial public service for the application through discussion, the specific requirements of each project group for developing the application are different, and a unified interface output platform cannot be formed for a plurality of applications inside the company or applications outside the company to call the third party service. In addition, the platform cannot be output through the unified interface to carry out corresponding authority management on the interfaces of the open third-party service, when a large number of users initiate interface call requests at the same time, the access pressure and the shunt pressure of the platform can be increased, network problems are easy to generate, and poor user experience is caused.
Disclosure of Invention
The embodiment of the application provides a method, equipment and medium for calling a third party service, which are used for solving the technical problems that the prior art cannot manage the authority of the open third party service, the pressure of an open platform is high and the user experience is poor.
In one aspect, an embodiment of the present application provides a method for calling a third party service, including:
according to the obtained configuration information corresponding to the plurality of third party services, interface information corresponding to the plurality of third party services is respectively determined, and according to the interface information corresponding to the plurality of third party services, the plurality of third party services are added on an interface comprehensive output platform;
under the condition that a user submits an application registration request to the interface comprehensive output platform, a corresponding application account is generated in the interface comprehensive output platform, and a corresponding secret key is distributed for the application account;
based on the interface comprehensive output platform, opening a corresponding third party service to be called for an application account holding the secret key, and generating a temporary token corresponding to the third party service to be called for the application account; the temporary token is used for indicating the use authority of the application account on the third-party service to be called;
Receiving a call request for realizing the third party service to be called through the interface comprehensive output platform, and checking the call request;
and under the condition that verification is passed, sending the call request to a corresponding third party service to be called through the interface comprehensive output platform, so that the third party service to be called responds to the call request, and the call of the application account to the third party service to be called is realized.
In one implementation manner of the present application, when a user submits an application registration request to the integrated interface output platform, a corresponding application account is generated in the integrated interface output platform, and a corresponding key is allocated to the application account, which specifically includes:
receiving an application registration request of a user, and responding to the application registration request, and returning a corresponding application registration page to the user;
based on the application registration page, sending application registration information to the interface comprehensive output platform; the application registration information at least comprises: application name, application type, application identification, application description, and application domain name address;
auditing the application registration information through the interface comprehensive output platform, and generating an application account corresponding to the application registration request in the interface comprehensive output platform under the condition that the auditing is passed;
And distributing a corresponding key for the application account, and sending the application account and the corresponding key to a user corresponding to the application account.
In one implementation manner of the present application, the opening, based on the integrated output platform of the interface, a corresponding third party service to be invoked for an application account holding the key specifically includes:
based on an application registration request submitted by a user to the interface comprehensive output platform, acquiring basic information and an application list corresponding to the user, and constructing a corresponding user portrait according to the basic information and the application list corresponding to the user;
wherein, the basic information at least comprises: the application list comprises all application account information registered by the user on the interface comprehensive output platform;
and determining a third-party service to be invoked corresponding to the application account based on the user portrait and the application description corresponding to the application account, and opening the corresponding third-party service to be invoked for the application account with the secret key on the interface comprehensive output platform.
In one implementation manner of the present application, in a case where the user submits an application registration request to the integrated output interface platform, before generating a corresponding application account in the integrated output interface platform, the method further includes:
Based on the disclosure documents provided by the interface comprehensive output platform, determining all third party services provided by the interface comprehensive output platform, and acquiring service descriptions corresponding to all third party services;
determining a third party service to be invoked corresponding to application description of a user, and determining whether the interface comprehensive output platform comprises the third party service to be invoked or not based on the service description corresponding to all the obtained third party services;
and submitting an application registration request corresponding to the application description to the interface comprehensive output platform when the interface comprehensive output platform comprises the third party service to be called corresponding to the application description.
In an implementation manner of the present application, according to the obtained configuration information corresponding to the plurality of third party services, interface information corresponding to the plurality of third party services is determined respectively, which specifically includes:
based on a preset access protocol of an interface comprehensive output platform, respectively establishing communication connection between a plurality of third party services and the interface comprehensive output platform;
receiving platform access requests corresponding to the plurality of third party services respectively through the interface comprehensive output platform, and determining configuration information of the corresponding third party services respectively from the plurality of platform access requests;
Respectively acquiring interface information corresponding to the plurality of third party services from configuration information of the plurality of third party services; the interface information at least comprises a port number corresponding to an interface, actual path information and service description corresponding to a third party service.
In an implementation manner of the present application, adding the plurality of third party services on an interface comprehensive output platform according to interface information corresponding to the plurality of third party services specifically includes:
respectively determining the actual path information of interfaces corresponding to the plurality of third party services from the interface information corresponding to the plurality of third party services, and determining the platform path information corresponding to an interface comprehensive output platform;
based on a preset path modification rule, respectively splicing a plurality of pieces of actual path information with the platform path information to obtain virtual path information corresponding to the plurality of third party services on the interface comprehensive output platform;
and respectively determining service descriptions corresponding to the plurality of third-party services from interface information corresponding to the plurality of third-party services, and respectively adding the plurality of third-party services on the interface comprehensive output platform based on the obtained plurality of virtual path information and the plurality of service descriptions.
In one implementation manner of the present application, in the case that the verification is passed, the integrated output platform sends the call request to a corresponding third party service to be called, so that the third party service to be called responds to the call request to implement the call of the application account to the third party service to be called, and specifically includes:
under the condition that verification is passed, virtual path information corresponding to the to-be-called third-party service in the call request is obtained through the interface comprehensive output platform, and actual path information corresponding to the to-be-called third-party service is determined based on a preset path modification rule and the corresponding virtual path information;
based on the determined actual path information corresponding to the third party service to be called, sending a call request corresponding to the application account to the third party service to be called, so that the third party service to be called responds to the call request, and sending corresponding response information to the interface comprehensive output platform;
and returning response information corresponding to the calling request to the application account through the interface output platform so as to realize the calling of the application account to the third party service to be called.
In one implementation manner of the present application, the verifying the call request specifically includes:
acquiring a temporary token corresponding to the application account based on the call request, and determining whether the temporary token corresponding to the application account has the call authority of the third party service to be called;
and under the condition that the application account is determined to have the calling authority, counting the third party service called by the application account and the corresponding calling times, and storing the corresponding counting result into an application list corresponding to the user.
On the other hand, the embodiment of the application also provides a calling device of the third party service, which comprises:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of invoking a third party service as described above.
In another aspect, embodiments of the present application also provide a non-volatile computer storage medium storing computer-executable instructions configured to:
The calling method of the third party service is as described above.
The embodiment of the application provides a method, equipment and medium for calling a third party service, which at least comprise the following beneficial effects:
by setting the interface comprehensive output platform and adding a plurality of open third party services to the interface comprehensive output platform, a user can check service descriptions corresponding to the third party services allowed to be called on the interface comprehensive output platform and judge whether the service required to be called by the current development application is included or not when developing the application, so that an integrated interface is provided for the plurality of third party services and a visual interface is provided for the user; when the interface comprehensive platform contains the service to be called by the user, the corresponding application account is registered on the interface comprehensive platform by submitting an application registration request to the interface comprehensive output platform, a secret key distributed for the current application account is obtained, the interface comprehensive output platform can distinguish the application account for calling the service by the secret key, further, the third party service and the calling times of each application account can be counted, the corresponding third party service to be called can be opened for the application account with the secret key on the interface comprehensive platform, a temporary token indicating the service use authority of the third party to be called by the current application account is obtained, the service calling authority of each application account can be limited by the temporary token, so that the calling safety of the interface is ensured, and the high concurrent calling of the interface is avoided; and receiving a corresponding call request through the interface comprehensive output platform, and after the interface comprehensive output platform passes the verification, sending the call request to a corresponding third party service, so that the third party service responds to the call request of the current application account, and the call of the application account to the third party service is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a flow chart of a method for calling a third party service according to an embodiment of the present application;
fig. 2 is a block diagram of a calling device of a third party service according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of another method for invoking a third party service by a user according to an embodiment of the present application;
fig. 4 is an internal structure schematic diagram of a third party service calling device according to an embodiment of the present application.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The embodiment of the application provides a method, equipment and medium for calling a third party service, which are characterized in that an interface comprehensive output platform is arranged, and a plurality of open third party services are added to the interface comprehensive output platform, so that a user can check service descriptions corresponding to the third party services allowed to be called on the interface comprehensive output platform when developing an application, and judge whether the service required to be called by the current development application is included or not; when the interface comprehensive platform contains the service to be called by the user, the corresponding application account is registered on the interface comprehensive platform by submitting an application registration request to the interface comprehensive output platform, and a key distributed for the current application account is obtained; and receiving a corresponding call request through the interface comprehensive output platform, and after the interface comprehensive output platform passes the verification, sending the call request to a corresponding third party service, so that the third party service responds to the call request of the current application account, and the call of the application account to the third party service is realized. The method and the device solve the technical problems that the prior art cannot manage the authority of the open third party service, the pressure of the open platform is high, and the user experience is poor.
Fig. 1 is a flow chart of a method for calling a third party service according to an embodiment of the present application. As shown in fig. 1, a method for calling a third party service provided in an embodiment of the present application may mainly include the following steps:
101. according to the obtained configuration information corresponding to the plurality of third party services, interface information corresponding to the plurality of third party services is respectively determined, and according to the interface information corresponding to the plurality of third party services, the plurality of third party services are added on the interface comprehensive output platform.
In order to relieve the access pressure and the shunt pressure of the existing open platform, the integrated interface output platform is constructed, an integrated interface is provided for a plurality of open third party services through the integrated interface output platform, a visual interface is provided for an application needing to call the third party services, the third party services are managed online and offline through the integrated interface output platform, the integration convenience of the third party services is ensured, a user calling the third party services is notified in time, and good use experience is provided for the user. In addition, the application account is limited in authority to call the third-party service, so that the call safety of the interface can be ensured, and the high concurrent call of the interface of the third-party service is avoided.
The server obtains configuration information corresponding to each third party service, determines interface information corresponding to each third party service according to the obtained configuration information, and then adds each third party service to the interface comprehensive output platform according to the interface information of each third party service, so that a user can conveniently call an open interface on the platform.
Specifically, the server establishes communication connection between the integrated output platforms of the interface by each third party based on a preset access protocol on the integrated output platform of the interface, so that the third party service can conveniently send a platform access request to the integrated output platform of the interface. It should be noted that, in the embodiment of the present application, the preset access protocol is a TCP-based protocol, for example: http, https, sftp and pop3, and selecting an appropriate protocol according to actual situations, which is not particularly limited in this application.
The server receives the platform access request of each open third party service through the interface comprehensive output platform, and obtains the configuration information corresponding to each third party service from the corresponding platform access request, so as to determine the interface information in the configuration information of each third party service. It should be noted that, in the embodiment of the present application, the interface information at least includes a port number corresponding to the interface, actual path information, and a service description corresponding to the third party service by the interface.
The server respectively determines the actual path information of interfaces corresponding to the plurality of third-party services from the interface information corresponding to the plurality of third-party services, determines the platform path information corresponding to the interface comprehensive output platform, and then respectively splices the plurality of actual path information and the platform path information based on the preset path modification rules on the interface comprehensive output platform, so that virtual path information corresponding to each third-party service on the interface comprehensive output platform can be obtained.
102. Under the condition that a user submits an application registration request to the interface comprehensive output platform, a corresponding application account is generated in the interface comprehensive output platform, and a corresponding secret key is distributed for the application account.
The method and the system provide a visual interface for a user through the interface comprehensive output platform, the user can clearly determine which open third party service interfaces and service descriptions corresponding to each third party service are contained on the interface comprehensive output platform on the visual interface, and when the user determines that the interface comprehensive output platform contains the service required to be invoked by the user, service invocation is carried out in a mode of registering an application on the interface comprehensive output platform.
Specifically, the server receives an application registration request of the user, and returns a corresponding application registration page to the user in response to the application registration request, so that the user sends corresponding application registration information to the interface comprehensive output platform based on the received application registration page. It should be noted that, in the embodiment of the present application, the application registration information at least includes an application name, an application type, an application identifier, an application description, and an application domain name address.
The server carries out auditing on the received application registration information through the interface comprehensive output platform, the auditing is mainly divided into two parts, the user auditing and the application auditing are carried out, the identity information of the user and the authentication information of the application are determined, an application account corresponding to the application registration request is generated in the interface comprehensive output platform under the condition that the auditing is passed, then a corresponding key is distributed to the application account through the interface comprehensive output platform, and the generated application account and the key corresponding to the application account are sent to the user corresponding to the application account.
In one embodiment of the application, before a user submits an application registration request to the integrated interface output platform and generates a corresponding application account in the integrated interface output platform, the server can determine all third party services provided by the integrated interface output platform through the public document provided by the integrated interface output platform, acquire service descriptions corresponding to all third party services, then the server also needs to determine to-be-called third party services corresponding to the application descriptions of the user, and determine whether the to-be-called third party services are included in the integrated interface output platform or not based on the acquired service descriptions corresponding to all third party services, so that when the to-be-called third party services corresponding to the application descriptions are included in the integrated interface output platform, the application registration request corresponding to the application descriptions can be submitted to the integrated interface output platform.
103. And opening a corresponding third party service to be invoked for the application account with the secret key based on the interface comprehensive output platform, and generating a temporary token corresponding to the third party service to be invoked for the application account.
Specifically, after the user registers the application on the integrated interface output platform, the server obtains the basic information and the application list corresponding to the user based on the application registration request submitted by the user to the integrated interface output platform, and constructs a corresponding user portrait according to the obtained basic information and the application list of the user. It should be noted that, in the embodiment of the present application, the basic information of the user at least includes: the user name, the user identification and the hierarchy to which the user belongs are all registered by the user on the interface comprehensive output platform. And then, the server can determine the to-be-called third-party service corresponding to the application account according to the constructed user portrait and the application description corresponding to the application account, and open the corresponding to-be-called third-party service for the application account with the secret key on the interface comprehensive output platform, so that the current application account has the call authority corresponding to the to-be-called third-party service.
104. And receiving a call request for realizing the third party service to be called through the interface comprehensive output platform, and checking the call request.
When a user acquires a temporary token generated by the interface comprehensive output platform, after determining that the temporary token has the calling authority of the third party service to be called, sending a calling request for realizing the third party service to the interface comprehensive output platform, receiving the calling request by the server through the interface comprehensive output platform, and checking the received calling request to judge whether an application account corresponding to the calling request has the corresponding calling authority.
Specifically, the server obtains the temporary token corresponding to the application account based on the call request, and can determine whether the application account has the call authority of the third party service to be called according to the temporary token, so that when the application account has the call authority and the state of the third party service to be called on the interface comprehensive output platform is online, statistics is carried out on the third party service called by the application account and the corresponding call times, and the obtained statistics result is stored in an application list corresponding to the user.
105. And under the condition that the verification is passed, sending a calling request to the corresponding third party service to be called through the interface comprehensive output platform, so that the third party service to be called responds to the calling request, and calling of the third party service to be called by the application account is realized.
Specifically, after verification of a call request of an application account through the interface comprehensive output platform is passed, a server acquires virtual path information corresponding to a to-be-called third party service in the call request through the interface comprehensive output platform, determines actual path information corresponding to the to-be-called third party service based on a preset path modification rule and the virtual path information corresponding to the to-be-called third party service, and then sends a call request corresponding to the application account to the to-be-called third party service based on the determined actual path information corresponding to the to-be-called third party service, so that the to-be-called third party service responds to the call request of the application account, and sends corresponding response information to the interface comprehensive output platform, and accordingly the response information corresponding to the call request is returned to the application account through the interface output platform, so that the call of the to-be-called third party service by the application account is realized. According to the method and the system, the actual path information of the corresponding interfaces of each third-party service is modified, so that a user cannot obtain the actual path information of the third-party service on the interface comprehensive platform, and the user can call the corresponding third-party service through the interface comprehensive output platform based on the application account, so that the reusability of the third-party service interfaces can be realized, the safety of the third-party service interfaces can be ensured, the high concurrent call of the third-party service is avoided, and good use experience is provided for the user.
Fig. 2 is a block diagram of a calling device of a third party service according to an embodiment of the present application. As shown in fig. 2, the calling device in the application includes a foreground user, a third party service providing an open service, and a built integrated interface output platform, where a user service platform and a third party service platform are disposed in the integrated interface output platform. A user of the foreground accesses the interface comprehensive output platform in the form of creating an application, generates a corresponding application account on the interface comprehensive output platform, and distributes a corresponding key for the application account, so that the user can call the specific application of the third party service based on the application account and the corresponding key when calling the third party service. The user service platform comprises a product module, an application module and a personal center module, wherein the product module is used for displaying service description of open third party service accessed to the interface comprehensive output platform and corresponding interface information; the application module is used for providing an application registration function for the user so that the user can call the corresponding third-party service based on the application account registered on the interface comprehensive output platform; the personal center module is used for displaying the basic information of the current login user, the application list and other functions. The third party service platform comprises a temporary token checking module and a third party service access module, wherein the temporary token checking module is used for determining whether an application account has the calling authority of the third party service to be called according to a temporary token corresponding to the application account; the third party service access module is used for receiving platform access requests of a plurality of open third party services and accessing the plurality of third party services to the interface comprehensive output platform for display. The server receives a call request of the third party service to be called initiated by a user based on an application account through the interface comprehensive output platform, verifies the call request, and after the verification is passed, sends the call request to the corresponding third party service through the interface comprehensive output platform, so that the user accesses an interface of the applied third party service according to the temporary token acquired during application creation, and the call of the third party service is realized.
Fig. 3 is a schematic flow chart of another method for calling a third party service by a user according to an embodiment of the present application. As shown in fig. 3, when an application account carries an application, an interface comprehensive output platform automatically distributes a key, requests an interface corresponding to a third party service from the interface comprehensive output platform, then the interface comprehensive output platform checks whether the application account corresponding to the key has access authority of the interface, and after the verification is passed, checks the state of the third party service, determines that the third party service is online, further judges the corresponding third party service according to the interface requested by the application account, sends a call request to the corresponding third party service, so that the third party service sends response data corresponding to the call request to the interface comprehensive output platform, and the interface comprehensive output platform sends the response data to the corresponding application account, thereby realizing the call of the current application account to the third party service.
It should be noted that the method shown in fig. 3 is substantially the same as the method shown in fig. 1, and therefore, the portions not described in detail in fig. 3 may be specifically referred to the related description in fig. 1, which is not repeated herein.
The foregoing is a method embodiment presented herein. Based on the same inventive concept, the embodiment of the application also provides a calling device of the third party service, and the structure of the calling device is shown in fig. 4.
Fig. 4 is an internal structure schematic diagram of a third party service calling device according to an embodiment of the present application. As shown in fig. 4, the apparatus includes:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to:
according to the obtained configuration information corresponding to the plurality of third party services, interface information corresponding to the plurality of third party services is respectively determined, and according to the interface information corresponding to the plurality of third party services, the plurality of third party services are added on an interface comprehensive output platform;
under the condition that a user submits an application registration request to the interface comprehensive output platform, a corresponding application account is generated in the interface comprehensive output platform, and a corresponding secret key is distributed for the application account;
based on the interface comprehensive output platform, opening a corresponding third party service to be called for an application account with a secret key, and generating a temporary token corresponding to the third party service to be called for the application account; the temporary token is used for indicating the use authority of the application account to the third party service to be called;
Receiving a call request for realizing the third party service to be called through the interface comprehensive output platform, and checking the call request;
and under the condition that the verification is passed, sending a calling request to the corresponding third party service to be called through the interface comprehensive output platform, so that the third party service to be called responds to the calling request, and calling of the third party service to be called by the application account is realized.
The embodiments of the present application also provide a nonvolatile computer storage medium storing computer executable instructions configured to:
according to the obtained configuration information corresponding to the plurality of third party services, interface information corresponding to the plurality of third party services is respectively determined, and according to the interface information corresponding to the plurality of third party services, the plurality of third party services are added on an interface comprehensive output platform;
under the condition that a user submits an application registration request to the interface comprehensive output platform, a corresponding application account is generated in the interface comprehensive output platform, and a corresponding secret key is distributed for the application account;
based on the interface comprehensive output platform, opening a corresponding third party service to be called for an application account with a secret key, and generating a temporary token corresponding to the third party service to be called for the application account; the temporary token is used for indicating the use authority of the application account to the third party service to be called;
Receiving a call request for realizing the third party service to be called through the interface comprehensive output platform, and checking the call request;
and under the condition that the verification is passed, sending a calling request to the corresponding third party service to be called through the interface comprehensive output platform, so that the third party service to be called responds to the calling request, and calling of the third party service to be called by the application account is realized.
All embodiments in the application are described in a progressive manner, and identical and similar parts of all embodiments are mutually referred, so that each embodiment mainly describes differences from other embodiments. In particular, for the apparatus and medium embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, with reference to the section of the method embodiments being relevant.
The devices and media provided in the embodiments of the present application are in one-to-one correspondence with the methods, so that the devices and media also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media are not described in detail herein.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method for invoking a third party service, the method comprising:
according to the obtained configuration information corresponding to the plurality of third party services, interface information corresponding to the plurality of third party services is respectively determined, and according to the interface information corresponding to the plurality of third party services, the plurality of third party services are added on an interface comprehensive output platform;
under the condition that a user submits an application registration request to the interface comprehensive output platform, a corresponding application account is generated in the interface comprehensive output platform, and a corresponding secret key is distributed for the application account;
based on the interface comprehensive output platform, opening a corresponding third party service to be called for an application account holding the secret key, and generating a temporary token corresponding to the third party service to be called for the application account; the temporary token is used for indicating the use authority of the application account on the third-party service to be called;
Receiving a call request for realizing the third party service to be called through the interface comprehensive output platform, and checking the call request;
and under the condition that verification is passed, sending the call request to a corresponding third party service to be called through the interface comprehensive output platform, so that the third party service to be called responds to the call request, and the call of the application account to the third party service to be called is realized.
2. The method for invoking a third party service according to claim 1, wherein when the user submits an application registration request to the integrated output interface platform, generating a corresponding application account in the integrated output interface platform, and distributing a corresponding key to the application account, specifically comprising:
receiving an application registration request of a user, and responding to the application registration request, and returning a corresponding application registration page to the user;
based on the application registration page, sending application registration information to the interface comprehensive output platform; the application registration information at least comprises: application name, application type, application identification, application description, and application domain name address;
Auditing the application registration information through the interface comprehensive output platform, and generating an application account corresponding to the application registration request in the interface comprehensive output platform under the condition that the auditing is passed;
and distributing a corresponding key for the application account, and sending the application account and the corresponding key to a user corresponding to the application account.
3. The method for invoking a third party service according to claim 1, wherein the enabling a corresponding third party service to be invoked for an application account holding the key based on the interface integrated output platform specifically comprises:
based on an application registration request submitted by a user to the interface comprehensive output platform, acquiring basic information and an application list corresponding to the user, and constructing a corresponding user portrait according to the basic information and the application list corresponding to the user;
wherein, the basic information at least comprises: the application list comprises all application account information registered by the user on the interface comprehensive output platform;
and determining a third-party service to be invoked corresponding to the application account based on the user portrait and the application description corresponding to the application account, and opening the corresponding third-party service to be invoked for the application account with the secret key on the interface comprehensive output platform.
4. The method for invoking a third party service according to claim 1, wherein in the case where the user submits an application registration request to the integrated output interface platform, before generating a corresponding application account in the integrated output interface platform, the method further comprises:
based on the disclosure documents provided by the interface comprehensive output platform, determining all third party services provided by the interface comprehensive output platform, and acquiring service descriptions corresponding to all third party services;
determining a third party service to be invoked corresponding to application description of a user, and determining whether the interface comprehensive output platform comprises the third party service to be invoked or not based on the service description corresponding to all the obtained third party services;
and submitting an application registration request corresponding to the application description to the interface comprehensive output platform when the interface comprehensive output platform comprises the third party service to be called corresponding to the application description.
5. The method for invoking a third party service according to claim 1, wherein the determining interface information corresponding to the plurality of third party services according to the obtained configuration information corresponding to the plurality of third party services comprises:
Based on a preset access protocol of an interface comprehensive output platform, respectively establishing communication connection between a plurality of third party services and the interface comprehensive output platform;
receiving platform access requests corresponding to the plurality of third party services respectively through the interface comprehensive output platform, and determining configuration information of the corresponding third party services respectively from the plurality of platform access requests;
respectively acquiring interface information corresponding to the plurality of third party services from configuration information of the plurality of third party services; the interface information at least comprises a port number corresponding to an interface, actual path information and service description corresponding to a third party service.
6. The method for calling the third party service according to claim 1, wherein the adding the plurality of third party services on the integrated interface output platform according to the interface information corresponding to the plurality of third party services specifically includes:
respectively determining the actual path information of interfaces corresponding to the plurality of third party services from the interface information corresponding to the plurality of third party services, and determining the platform path information corresponding to an interface comprehensive output platform;
Based on a preset path modification rule, respectively splicing a plurality of pieces of actual path information with the platform path information to obtain virtual path information corresponding to the plurality of third party services on the interface comprehensive output platform;
and respectively determining service descriptions corresponding to the plurality of third-party services from interface information corresponding to the plurality of third-party services, and respectively adding the plurality of third-party services on the interface comprehensive output platform based on the obtained plurality of virtual path information and the plurality of service descriptions.
7. The method for calling a third party service according to claim 1, wherein in the case that the verification is passed, sending the call request to the corresponding third party service to be called through the integrated interface output platform, so that the third party service to be called responds to the call request, and the call of the application account to the third party service to be called is implemented, which specifically includes:
under the condition that verification is passed, virtual path information corresponding to the to-be-called third-party service in the call request is obtained through the interface comprehensive output platform, and actual path information corresponding to the to-be-called third-party service is determined based on a preset path modification rule and the corresponding virtual path information;
Based on the determined actual path information corresponding to the third party service to be called, sending a call request corresponding to the application account to the third party service to be called, so that the third party service to be called responds to the call request, and sending corresponding response information to the interface comprehensive output platform;
and returning response information corresponding to the calling request to the application account through the interface output platform so as to realize the calling of the application account to the third party service to be called.
8. The method for invoking a third party service according to claim 1, wherein said verifying said invocation request comprises:
acquiring a temporary token corresponding to the application account based on the call request, and determining whether the temporary token corresponding to the application account has the call authority of the third party service to be called;
and under the condition that the application account is determined to have the calling authority, counting the third party service called by the application account and the corresponding calling times, and storing the corresponding counting result into an application list corresponding to the user.
9. A call device for a third party service, the device comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of invoking a third party service according to any of claims 1-8.
10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:
a method of invoking a third party service as claimed in any of claims 1 to 8.
CN202211101021.3A 2022-09-09 2022-09-09 Calling method, equipment and medium for third party service Pending CN116260852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211101021.3A CN116260852A (en) 2022-09-09 2022-09-09 Calling method, equipment and medium for third party service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211101021.3A CN116260852A (en) 2022-09-09 2022-09-09 Calling method, equipment and medium for third party service

Publications (1)

Publication Number Publication Date
CN116260852A true CN116260852A (en) 2023-06-13

Family

ID=86681533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211101021.3A Pending CN116260852A (en) 2022-09-09 2022-09-09 Calling method, equipment and medium for third party service

Country Status (1)

Country Link
CN (1) CN116260852A (en)

Similar Documents

Publication Publication Date Title
CN107086909B (en) Identity information generation method and device and identity verification method and device
US10944560B2 (en) Privacy-preserving identity asset exchange
US10721328B2 (en) Offering application program interfaces (APIs) for sale in cloud marketplace
CN111382168B (en) Node group creating method and node group-based transaction method in alliance chain network
CN110009321B (en) Transfer method and system based on block chain intelligent contract
CN112200575B (en) Node group creating method and node group-based transaction method in alliance chain network
US20200175509A1 (en) Transferring method and system based on blockchain smart contract
CN110839087B (en) Interface calling method and device, electronic equipment and computer readable storage medium
US11431503B2 (en) Self-sovereign data access via bot-chain
CN110650216B (en) Cloud service request method and device
CN110086872B (en) Data processing method and system of SCADA system
CN111770112B (en) Information sharing method, device and equipment
CN111814172A (en) Method, device and equipment for acquiring data authorization information
CN106951795A (en) A kind of application data access partition method and device
CN112346717A (en) Micro service system creating method, device, equipment, medium and micro service system
CN113850575A (en) Resource processing method and device
US20210133734A1 (en) Systems and methods related to executing transactions in a hybrid cloud environment
CN106982193A (en) A kind of method and device of prevention batch registration
CN112734349A (en) Interface generation method, data calling method, device and electronic equipment
CN116451280A (en) Asset management method and device based on blockchain
CN116260852A (en) Calling method, equipment and medium for third party service
US20230169204A1 (en) Secure sharing of personal data in distributed computing zones
CN116185954A (en) File access method and device, processor and electronic equipment
CN111143327B (en) Data processing method and device
CN113836331A (en) Image query method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination