CN111240733A - Data acquisition method and device based on multiple third-party interfaces - Google Patents

Data acquisition method and device based on multiple third-party interfaces Download PDF

Info

Publication number
CN111240733A
CN111240733A CN202010070899.XA CN202010070899A CN111240733A CN 111240733 A CN111240733 A CN 111240733A CN 202010070899 A CN202010070899 A CN 202010070899A CN 111240733 A CN111240733 A CN 111240733A
Authority
CN
China
Prior art keywords
data
party
data acquisition
interfaces
interface
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
CN202010070899.XA
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.)
Ubtech Robotics Corp
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN202010070899.XA priority Critical patent/CN111240733A/en
Publication of CN111240733A publication Critical patent/CN111240733A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a data acquisition method and a data acquisition device based on a plurality of third-party interfaces, wherein the method comprises the following steps: receiving a data acquisition request sent by a client; respectively acquiring target data corresponding to the data acquisition requests from a plurality of third-party interfaces; and performing adaptation processing on the target data acquired from the plurality of third-party interfaces to generate data in a uniform format for output. According to the method, a plurality of third-party resources are integrated in one website or platform, and the data which are obtained from the plurality of third-party resources respectively are subjected to adaptation processing, so that the data which are obtained from the plurality of different third-party resources and have the same function are converted into the data with the uniform format to be output.

Description

Data acquisition method and device based on multiple third-party interfaces
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a data acquisition method and device based on a plurality of third-party interfaces.
Background
For some websites or platforms as resource integrators, data resources can be acquired from massive third-party resource providers for use. However, each third-party resource has an independent data structure form, so that the website or the platform is easy to have incompatibility problem when using data of different third-party resources, and the data of a plurality of third-party resources are difficult to use simultaneously.
Disclosure of Invention
In view of this, embodiments of the present application provide a data acquisition method and apparatus based on multiple third-party interfaces, and also provide an electronic device and a storage medium for executing the data acquisition method based on multiple third-party interfaces, which are intended to at least solve one of the technical defects that in the prior art, when a website or a platform uses data of different third-party resources, incompatibility is easily caused, and it is difficult to simultaneously use data of multiple third-party resources.
A first aspect of an embodiment of the present application provides a data acquisition method based on multiple third-party interfaces, where the data acquisition method based on multiple third-party interfaces includes:
receiving a data acquisition request sent by a client;
respectively acquiring target data corresponding to the data acquisition requests from a plurality of third-party interfaces;
and performing adaptation processing on the target data acquired from the plurality of third-party interfaces to generate data in a uniform format for output.
With reference to the first aspect, in a first possible implementation manner of the first aspect, before the step of obtaining the target data corresponding to the data obtaining request from the plurality of third-party interfaces, the method further includes:
acquiring interface document information of a third-party interface matched with the data acquisition request;
and carrying out authentication and certification processing on the data processing terminal according to the interface document information, and establishing a data transmission channel between the data processing terminal and the third-party interface.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the step of obtaining interface document information of a third-party interface that matches the data obtaining request includes:
identifying data information to be acquired of the data acquisition request;
matching with a third party interface preset in the data processing terminal according to the data information to be acquired;
and acquiring interface document information of the third-party interface matched with the data acquisition request according to the pairing result.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the authentication and authentication processing manner includes any one of HTTP basic authentication, session cookie authentication, token verification, and open authorization authentication.
With reference to any one of the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, after the step of performing authentication processing on the data processing terminal according to the interface document information and establishing a data transmission channel between the data processing terminal and the third-party interface, the method further includes:
and carrying out weight ratio setting on the third-party interface matched with the data acquisition request.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the step of performing weight matching setting on the third-party interface matched with the data acquisition request includes:
and carrying out weight proportion setting on the third-party interface matched with the data acquisition request according to the data type.
With reference to the first aspect, in a sixth possible implementation manner of the first aspect, the step of obtaining target data corresponding to the data obtaining request from a plurality of third-party interfaces respectively includes:
extracting original data corresponding to the data acquisition request from a plurality of third-party interfaces;
and analyzing the data structure of the original data to generate target data corresponding to the data acquisition request.
A second aspect of the embodiments of the present application provides a data acquisition apparatus based on multiple third-party interfaces, where the data acquisition apparatus based on multiple third-party interfaces includes:
the receiving module is used for receiving a data acquisition request sent by a client;
the processing module is used for respectively acquiring target data corresponding to the data acquisition requests from a plurality of third-party interfaces;
and the execution module is used for performing adaptation processing on the target data acquired from the plurality of third-party interfaces to generate data in a uniform format and outputting the data.
A third aspect of the embodiments of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the steps of the data acquisition method based on multiple third-party interfaces according to any one of the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the data acquisition method based on multiple third-party interfaces according to any one of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that:
according to the data acquisition method and device, after a data acquisition request sent by a client is received, target data corresponding to the request are acquired from a plurality of third-party interfaces, and then the target data extracted from the plurality of third-party interfaces are subjected to adaptation processing, and unified standard data are generated and output. The method has a simple and easy-to-use structure, integrates data of a plurality of three-party resources, realizes that a website or a platform can output data which are obtained from different three-party resources and have the same function in a uniform data format, solves the problem of incompatibility which is easy to occur when the website or the platform uses the data of different third-party resources, and realizes that the website or the platform can simultaneously use the data of a plurality of third-party resources.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a basic method of a data acquisition method based on multiple third-party interfaces according to an embodiment of the present disclosure;
fig. 2 is a block diagram of an execution structure of a data acquisition method based on multiple third-party interfaces according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for configuring a third-party interface according to a data acquisition request in a data acquisition method based on multiple third-party interfaces according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a method for acquiring interface document information of a third-party interface matching the data acquisition request in the data acquisition method based on multiple third-party interfaces according to the embodiment of the present application;
fig. 5 is a schematic flowchart of a method for acquiring target data in the data acquisition method based on multiple third-party interfaces according to the embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a data acquisition device based on multiple third-party interfaces according to an embodiment of the present disclosure;
fig. 7 is a schematic view of an electronic device for implementing a data acquisition method based on multiple third-party interfaces according to an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
The data acquisition method and device based on the multiple third-party interfaces aim at converting data which are acquired from multiple different third-party resources and have the same function into data in a unified format for output by performing adaptation processing on data acquired from the multiple third-party resources respectively on a website or a platform integrated with the multiple third-party resources, and the website or the platform can use the data of the multiple third-party resources simultaneously.
In some embodiments of the present application, please refer to fig. 1 and fig. 2 together, where fig. 1 is a basic method flowchart of a data acquisition method based on multiple third-party interfaces according to an embodiment of the present application; fig. 2 is a block diagram of an execution structure of a data acquisition method based on multiple third-party interfaces according to an embodiment of the present disclosure. The details are as follows:
in step S101, a data acquisition request sent by a client is received.
In this embodiment, for some websites or platforms integrating a plurality of data resources, the websites or platforms as data processing terminals may obtain the data resources from a plurality of third-party resource providers to provide the data resources to clients for use. When the client needs to acquire a piece of data through the website or platform, the client can request the website or platform to acquire the corresponding data resource by sending a data acquisition request to the website or platform.
In step S102, target data corresponding to the data acquisition request is extracted from each of the plurality of third party interfaces.
In this embodiment, a plurality of third party interfaces are pre-configured in the website or the platform, and each third party interface corresponds to one third party resource, that is, a plurality of third party resources are integrated. The website or the platform may extract target data corresponding to the data acquisition request from the plurality of third-party interfaces according to the data acquisition request received by the website or the platform. When the third-party interface is configured in the website or the platform, the interface address and the authentication parameter of the third-party interface, the service parameter required by assembling the third-party interface and the like are configured in the website or the platform to establish a data transmission channel between the website or the platform and the third-party interface, and then the website or the platform obtains the target data corresponding to the data obtaining request from the third-party interface through the data transmission channel.
In step S103, the target data extracted from the plurality of three-party interfaces is subjected to adaptation processing, and data in a uniform format is generated and output.
In this embodiment, an adaptation rule may be set in the website or the platform in advance, then adaptation processing on the target data is implemented in a key value manner of a Map data structure, the target data extracted from different third-party interfaces are all uniformly converted, and data in a uniform format is generated and output in a data form in the uniform format. For example, taking the response code of the third party interface as an example, the value of the response code uniformly output in the website or platform adaptation class may be set in the value by first defining the response MAP object of the third party interface, and then adding the value of the third party interface data response code to the key value, thereby implementing uniform conversion on the target data extracted from different third party interfaces, generating data in a uniform format, and outputting the target data in a data form in a uniform format.
In the data acquisition method based on multiple third-party interfaces provided by the embodiment, after a data acquisition request sent by a client is received, target data corresponding to the request is extracted from the multiple third-party interfaces, and then the target data extracted from the multiple third-party interfaces is subjected to adaptation processing, and data in a unified format is generated and output. The method has a simple and easy-to-use structure, integrates data of a plurality of three-party resources, realizes that a website or a platform can output data which are obtained from different three-party resources and have the same function in a uniform data format, solves the problem of incompatibility which is easy to occur when the website or the platform uses the data of different third-party resources, and realizes that the website or the platform can simultaneously use the data of a plurality of third-party resources.
In some embodiments of the present application, please refer to fig. 3, and fig. 3 is a flowchart illustrating a method for configuring a third-party interface according to a data acquisition request in a data acquisition method based on multiple third-party interfaces according to an embodiment of the present application. The details are as follows:
in step S301, interface document information of a third party interface matching the data acquisition request is acquired;
in step S302, the data processing terminal is authenticated according to the interface document information, and a data transmission channel between the data processing terminal and the third-party interface is established.
In this embodiment, the data sources stored in each third-party resource may be different, and the data acquired by the client at each request may also be different. Therefore, before extracting the target data corresponding to the data acquisition request, the data processing terminal can also configure a third-party interface for acquiring the data required by the request for the data acquisition request. For example, as a data processing end, the website or the platform is provided with a plurality of third-party interfaces in advance, after the website or the platform obtains a data acquisition request, interface document information of the third-party interface matching the data acquisition request can be obtained from the website or the platform provided with a plurality of third-party interfaces in advance, and then the data processing end is authenticated according to the interface document information, so as to establish a data transmission channel between the data processing end and the third-party interface. It can be understood that the number of the obtained third-party interfaces matched with the data acquisition request can be one, two or more, and the number of the matched third-party interfaces is less than or equal to the number of the third-party interfaces preset in the website or the platform. After obtaining the interface document information of the third-party interface, performing authentication and certification processing between the third-party interface and a website or a platform serving as a data processing end according to the interface document information to establish a data transmission channel between the website or the platform and the third-party interface, so as to configure the third-party interface for a client to acquire data according to a data acquisition request, and further realize that the website or the platform acquires target data corresponding to the data acquisition request from the third-party interface through the data transmission channel. In this embodiment, the authentication and authorization processing manner includes, but is not limited to, any one of HTTP basic authentication, session cookie authentication, token verification, and open authorization authentication.
In the embodiment, the third-party interface for the website or the platform to acquire the data is configured according to the acquisition request sent by the user side, authentication and certification processing is performed between the third-party interface and the website or the platform serving as the data processing end, and the data transmission channel between the website or the platform and the third-party interface is established, so that the three-party interface which is adapted to a plurality of data resources of the same type aiming at one data acquisition request is realized, and the data of the plurality of third-party resources is integrated, so that the client side can acquire more comprehensive and accurate data.
In some embodiments of the present application, please refer to fig. 4, where fig. 4 is a schematic flowchart of a method for acquiring interface document information of a third-party interface matched with a data acquisition request in a data acquisition method based on multiple third-party interfaces according to an embodiment of the present application; the details are as follows:
in step S401, data information to be acquired of the data acquisition request is identified;
in step S402, pairing the data information to be acquired with a third party interface preset in the data processing terminal;
in step S403, interface document information of the third-party interface matching the data acquisition request is acquired according to the pairing result.
In this embodiment, the data information that the client wants to acquire in this request may be obtained by analyzing the data acquisition request, for example, data type information including data types such as video, audio, image, or text. And then, pairing each third-party interface preset in the website or the platform according to the obtained data information, wherein whether the third-party interface in the website or the platform contains a related data set with the same type as the data information is identified, if so, pairing is successful, and at the moment, interface document information of the third-party interface is obtained, so that the third-party interface is used as a third-party interface configured to obtain data required by the request. Otherwise, the pairing is failed, and at this time, the interface document information of the third-party interface with the pairing failure does not need to be acquired. It can be understood that, in this embodiment, the pairing is performed on all third party interfaces preset in the website or the platform, and the interface document information of all successfully paired third party interfaces in the website or the platform is obtained.
In some embodiments of the application, when the number of the third-party interfaces in the website or the platform matched with the data acquisition request is multiple, the website or the platform can set the weight ratio of the multiple third-party interfaces matched with the data acquisition request, and the website or the platform can set the weight of the third-party resources when acquiring the data by matching the data amount acquired from different third-party interfaces according to the requirement, so that the data required by the client can be more accurately extracted.
In this embodiment, the weighting configuration may be performed on the plurality of third-party interfaces matched with the data acquisition request according to the data type corresponding to the data requested to be acquired by the client. For example, based on the data content that the client wants to obtain, there are A, B, C three third party interfaces matching the data obtaining request, and according to the data type, the third party resource corresponding to the a interface stores more video data, the third party resource corresponding to the B interface stores more audio data, and the third party resource corresponding to the C interface stores more text data. Assuming that the data content that the client wants to obtain is video data, and in the website or platform, if the number of the matched interfaces is 3, the corresponding interface weight ratio is set to 8:1:1, then at this time, the weight ratio of the interface a with more data being video data is 8, the weight ratio of the interface B with more data being audio data is 1, and the weight ratio of the interface C with more data being text data is also 1. It is understood that the setting of the weight ratio may also be set according to the actual requirement of the user, for example, according to the data storage amount of each third-party resource, according to the authority size when a data transmission channel is established between each third-party resource and the website or the platform, and the like.
In some embodiments of the present application, please refer to fig. 5, and fig. 5 is a schematic flowchart illustrating a method for acquiring target data in a data acquisition method based on multiple third-party interfaces according to an embodiment of the present application. The details are as follows:
in step S501, extracting original data corresponding to the data acquisition request from a plurality of third-party interfaces;
in step S502, a data structure of the original data is analyzed to obtain target data corresponding to the data obtaining request.
In this embodiment, different third-party resources have different data structures for storing data, and therefore, the original data obtained from the third-party interface needs to be analyzed by the data structure to obtain the target data required by the client. It can be understood that the website or the platform may analyze data of a plurality of different data structures, that is, for original data obtained from different third-party interfaces, corresponding data structure analysis processing may be performed according to the data structure of the original data, so as to extract data fields required by a client from the original data, where the data fields are target data corresponding to the data acquisition request, so that target data obtained from a plurality of third-party interfaces are integrated, and compatibility with the plurality of third-party interfaces is achieved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In some embodiments of the present application, please refer to fig. 6, and fig. 6 is a schematic structural diagram of a data acquisition device based on multiple third-party interfaces according to an embodiment of the present application, which is detailed as follows:
the data acquisition device based on a plurality of third party interfaces comprises: a receiving module 601, a processing module 602, and an executing module 603. The receiving module 601 is configured to receive a data obtaining request sent by a client. The processing module 602 is configured to extract target data corresponding to the data acquisition request from a plurality of preconfigured third party interfaces, respectively. The executing module 603 is configured to perform adaptation processing on the target data extracted from the multiple third-party interfaces, generate data in a unified format, and output the data.
The data acquisition device based on the plurality of third-party interfaces corresponds to the data acquisition method based on the plurality of third-party interfaces one to one.
In some embodiments of the present application, please refer to fig. 7, and fig. 7 is a schematic diagram of an electronic device for implementing a data acquisition method based on multiple third-party interfaces according to an embodiment of the present application. As shown in fig. 7, the electronic apparatus 7 of this embodiment includes: a processor 71, a memory 72 and a computer program 73 stored in said memory 72 and executable on said processor 71, such as a data acquisition program based on a plurality of third party interfaces. The processor 71 executes the computer program 72 to implement the steps in the above-mentioned embodiments of the data acquisition method based on multiple third-party interfaces. Alternatively, the processor 71 implements the functions of the modules/units in the above-described device embodiments when executing the computer program 73.
Illustratively, the computer program 73 may be partitioned into one or more modules/units, which are stored in the memory 72 and executed by the processor 71 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 73 in the electronic device 7. For example, the computer program 73 may be divided into:
the acquisition module is used for receiving a data acquisition request sent by a client;
the processing module is used for respectively extracting target data corresponding to the data acquisition request from a plurality of preconfigured third-party interfaces;
and the execution module is used for performing adaptation processing on the target data extracted from the plurality of third-party interfaces to generate data in a unified format and outputting the data.
The electronic device may include, but is not limited to, a processor 71, a memory 72. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the electronic device 7, and does not constitute a limitation of the electronic device 7, and may include more or less components than those shown, or combine certain components, or different components, for example, the electronic device may also include input output devices, network access devices, buses, etc.
The Processor 71 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 72 may be an internal storage unit of the electronic device 7, such as a hard disk or a memory of the electronic device 7. The memory 72 may also be an external storage device of the electronic device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 7. Further, the memory 72 may also include both an internal storage unit and an external storage device of the electronic device 7. The memory 72 is used for storing the computer program and other programs and data required by the electronic device. The memory 72 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A data acquisition method based on a plurality of third-party interfaces is characterized in that the data acquisition method based on the plurality of third-party interfaces comprises the following steps:
receiving a data acquisition request sent by a client;
respectively acquiring target data corresponding to the data acquisition requests from a plurality of third-party interfaces;
and performing adaptation processing on the target data acquired from the plurality of third-party interfaces to generate data in a uniform format for output.
2. The data acquisition method based on multiple third-party interfaces according to claim 1, wherein before the step of acquiring the target data corresponding to the data acquisition request from the multiple third-party interfaces, the method further comprises:
acquiring interface document information of a third-party interface matched with the data acquisition request;
and carrying out authentication and certification processing on the data processing terminal according to the interface document information, and establishing a data transmission channel between the data processing terminal and the third-party interface.
3. The method for acquiring data based on multiple third party interfaces according to claim 2, wherein the step of acquiring interface document information of a third party interface matching the data acquisition request comprises:
identifying data information to be acquired of the data acquisition request;
matching with a third party interface preset in the data processing terminal according to the data information to be acquired;
and acquiring interface document information of the third-party interface matched with the data acquisition request according to the pairing result.
4. The data acquisition method based on multiple third-party interfaces as claimed in claim 2, wherein the authentication and authorization processing mode includes any one of HTTP basic authentication, session cookie authentication, token verification and open authorization authentication.
5. The method for acquiring data based on multiple third-party interfaces according to any one of claims 2 to 4, wherein after the step of performing authentication and certification processing on the data processing terminal according to the interface document information and establishing the data transmission channel between the data processing terminal and the third-party interface, the method further comprises:
and carrying out weight ratio setting on the third-party interface matched with the data acquisition request.
6. The method according to claim 5, wherein the step of setting the weight ratio of the third-party interface matching the data acquisition request comprises:
and carrying out weight proportion setting on the third-party interface matched with the data acquisition request according to the data type.
7. The data acquisition method based on multiple third-party interfaces according to claim 1, wherein the step of acquiring the target data corresponding to the data acquisition request from the multiple third-party interfaces respectively comprises:
extracting original data corresponding to the data acquisition request from a plurality of third-party interfaces;
and analyzing the data structure of the original data to generate target data corresponding to the data acquisition request.
8. A data acquisition device based on a plurality of third-party interfaces is characterized in that the data acquisition device based on the plurality of third-party interfaces comprises:
the receiving module is used for receiving a data acquisition request sent by a client;
the processing module is used for respectively acquiring target data corresponding to the data acquisition requests from a plurality of third-party interfaces;
and the execution module is used for performing adaptation processing on the target data acquired from the plurality of third-party interfaces to generate data in a uniform format and outputting the data.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the data acquisition method based on the plurality of third party interfaces according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for data acquisition based on multiple third party interfaces according to any one of claims 1 to 7.
CN202010070899.XA 2020-01-21 2020-01-21 Data acquisition method and device based on multiple third-party interfaces Pending CN111240733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010070899.XA CN111240733A (en) 2020-01-21 2020-01-21 Data acquisition method and device based on multiple third-party interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010070899.XA CN111240733A (en) 2020-01-21 2020-01-21 Data acquisition method and device based on multiple third-party interfaces

Publications (1)

Publication Number Publication Date
CN111240733A true CN111240733A (en) 2020-06-05

Family

ID=70874873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010070899.XA Pending CN111240733A (en) 2020-01-21 2020-01-21 Data acquisition method and device based on multiple third-party interfaces

Country Status (1)

Country Link
CN (1) CN111240733A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710237A (en) * 2022-03-25 2022-07-05 湖南鼎一致远科技发展有限公司 Data processing method and device of communication interface, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105190532A (en) * 2013-03-13 2015-12-23 高通股份有限公司 Hierarchical orchestration of data providers for the retrieval of point of interest metadata
CN105323654A (en) * 2014-08-05 2016-02-10 优视科技有限公司 Method and device for displaying content data from network
CN106547766A (en) * 2015-09-18 2017-03-29 华为技术有限公司 A kind of data access method and device
CN106960053A (en) * 2017-03-31 2017-07-18 中联恒天控股有限公司 A kind of credit investigation system with dynamic data management and access function
CN108292323A (en) * 2016-01-08 2018-07-17 微软技术许可有限责任公司 Use the database manipulation of the metadata of data source
CN109145025A (en) * 2018-09-14 2019-01-04 阿里巴巴集团控股有限公司 A kind of data query method, apparatus and service server that multi-data source is integrated
CN110069561A (en) * 2019-04-29 2019-07-30 金瓜子科技发展(北京)有限公司 Account acquisition methods, system, electronic equipment and computer-readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105190532A (en) * 2013-03-13 2015-12-23 高通股份有限公司 Hierarchical orchestration of data providers for the retrieval of point of interest metadata
CN105323654A (en) * 2014-08-05 2016-02-10 优视科技有限公司 Method and device for displaying content data from network
CN106547766A (en) * 2015-09-18 2017-03-29 华为技术有限公司 A kind of data access method and device
CN108292323A (en) * 2016-01-08 2018-07-17 微软技术许可有限责任公司 Use the database manipulation of the metadata of data source
CN106960053A (en) * 2017-03-31 2017-07-18 中联恒天控股有限公司 A kind of credit investigation system with dynamic data management and access function
CN109145025A (en) * 2018-09-14 2019-01-04 阿里巴巴集团控股有限公司 A kind of data query method, apparatus and service server that multi-data source is integrated
CN110069561A (en) * 2019-04-29 2019-07-30 金瓜子科技发展(北京)有限公司 Account acquisition methods, system, electronic equipment and computer-readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710237A (en) * 2022-03-25 2022-07-05 湖南鼎一致远科技发展有限公司 Data processing method and device of communication interface, electronic equipment and storage medium
CN114710237B (en) * 2022-03-25 2024-01-26 湖南鼎一致远科技发展有限公司 Data processing method and device of communication interface, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110555299B (en) Electronic contract signing and storing method and device, computer equipment and storage medium
CN109919579B (en) Electronic document signing method, device, storage medium and equipment
CN108718337B (en) Website account login, verification and verification information processing method, device and system
CN109474603B (en) Data packet grabbing processing method and terminal equipment
CN110266653B (en) Authentication method, system and terminal equipment
EP3261317A1 (en) Authentication system, communication system, and authentication and authorization method
CN110210252B (en) Active security method and device for electronic data and server
CN111240733A (en) Data acquisition method and device based on multiple third-party interfaces
CN112988311A (en) On-line experimental method based on WEB server
CN110933038B (en) Conference implementation method, system, service platform and storage medium
CN112887451A (en) Domain name resolution method and device and computer equipment
CN109299948B (en) Red packet sending method and device, wearable device and storage medium
CN113395326B (en) Network service-based login method, device and computer-readable storage medium
CN107358032B (en) Product upgrading method and device and product upgrading system
CN110602218A (en) Method and related device for assembling cloud service in user-defined manner
CN108737350B (en) Information processing method and client
CN110119337B (en) Data analysis method and device and server
JP7238558B2 (en) Authentication mediation device and authentication mediation program
CN114490718A (en) Data output method, data output device, electronic equipment and computer readable medium
CN109412931B (en) Method, device and terminal equipment for performing knowledge question answering by using instant messaging mode
CN109543398B (en) Application program account migration method and device and electronic equipment
CN113259108A (en) Certificate updating method, Internet of things platform and Internet of things equipment
CN112311716A (en) Data access control method and device based on openstack and server
CN112261051B (en) User registration method, device and system
CN115022592A (en) Method and device for playing monitoring videos with multiple interfaces

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