CN112612517A - Data acquisition method and related equipment - Google Patents

Data acquisition method and related equipment Download PDF

Info

Publication number
CN112612517A
CN112612517A CN202011507338.8A CN202011507338A CN112612517A CN 112612517 A CN112612517 A CN 112612517A CN 202011507338 A CN202011507338 A CN 202011507338A CN 112612517 A CN112612517 A CN 112612517A
Authority
CN
China
Prior art keywords
application program
target
interface
data
user
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.)
Granted
Application number
CN202011507338.8A
Other languages
Chinese (zh)
Other versions
CN112612517B (en
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.)
Shenzhen Ideamake Software Technology Co Ltd
Original Assignee
Shenzhen Ideamake Software 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 Shenzhen Ideamake Software Technology Co Ltd filed Critical Shenzhen Ideamake Software Technology Co Ltd
Priority to CN202011507338.8A priority Critical patent/CN112612517B/en
Publication of CN112612517A publication Critical patent/CN112612517A/en
Application granted granted Critical
Publication of CN112612517B publication Critical patent/CN112612517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a data acquisition method and related equipment, which are applied to electronic equipment, wherein the method comprises the following steps: packaging the N first application program interfaces into target application program interfaces, and exposing the target application program interfaces; receiving an interface calling request from a user side through the target application program interface, wherein the interface calling request carries an identifier of an application program interface which is requested to be called; determining a second application program interface in the N first application program interfaces based on the identification and the interface configuration rule; and acquiring user data of a target application applet platform through the second application program interface, wherein the second application program interface is an interface of the target application applet platform, and the M first application applet platforms comprise the target application applet platform. By adopting the embodiment of the application, the convenience of data acquisition can be improved.

Description

Data acquisition method and related equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data acquisition method and related devices.
Background
In recent years, with the rapid development of the ecology of the WeChat small program, a large number of developers and enterprises are attracted to the development of the WeChat small program, and different small programs are successively introduced by each large technical manufacturer. Because the implementation mechanism and the open application program interface of each applet platform manufacturer are different, if the data is required to be accessed to each applet ecology to obtain data, customized development needs to be performed on different open interfaces of each applet platform, which is a time-consuming and inefficient method, and therefore, how to eliminate the difference and the repeatability generated by the applet platforms of different technical manufacturers is a key problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a data acquisition method and related equipment, which are beneficial to improving the convenience of data acquisition.
In a first aspect, an embodiment of the present application provides a data acquisition method, where the method includes:
packaging N first application program interfaces into target application program interfaces, and exposing the target application program interfaces, wherein the N first application program interfaces are interfaces of M first application small program platforms, each first application small program platform corresponds to at least one first application program interface, M and N are positive integers, and N is larger than or equal to M;
receiving an interface calling request from a user side through the target application program interface, wherein the interface calling request carries an identifier of an application program interface which is requested to be called;
determining a second application program interface in the N first application program interfaces based on the identification and the interface configuration rule;
and acquiring user data of a target application applet platform through the second application program interface, wherein the second application program interface is an interface of the target application applet platform, and the M first application applet platforms comprise the target application applet platform.
In a second aspect, an embodiment of the present application provides a data acquisition apparatus, including:
the system comprises an encapsulation unit, a processing unit and a processing unit, wherein the encapsulation unit is used for encapsulating N first application program interfaces into target application program interfaces and exposing the target application program interfaces, the N first application program interfaces are interfaces of M first application applet platforms, each first application applet platform corresponds to at least one first application program interface, the M and the N are positive integers, and the N is greater than or equal to the M;
the receiving unit is used for receiving an interface calling request from a user side through the target application program interface, wherein the interface calling request carries an identifier of an application program interface which is requested to be called;
a determining unit, configured to determine a second application program interface among the N first application program interfaces based on the identifier and an interface configuration rule;
an obtaining unit, configured to obtain user data of a target applet platform through the second application program interface, where the second application program interface is an interface of the target applet platform, and the M first applet platforms include the target applet platform.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in the method according to the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the method according to the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, first, N first application program interfaces are encapsulated as target application program interfaces and expose the target application program interfaces, where the N first application program interfaces are interfaces of M first applet platforms, then, an interface call request from a user side is received through the target application program interfaces, the interface call request carries an identifier of an application program interface requested to be called, then, based on the identifier and an interface configuration rule, a second application program interface is determined in the N first application program interfaces, and finally, user data of the target applet platform is obtained through the second application program interface, where the second application program interface is an interface of the target applet platform, and the M first application applet platforms include the target applet platform. Since the interfaces of different application small program platforms are packaged into one interface and the packaged interface is exposed to the outside, the interface to be called can be determined directly through the packaged interface, so that the data of the application small program platform can be acquired, and the convenience of acquiring the data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a data acquisition method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another electronic device provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a data acquisition apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Hereinafter, some terms in the present application are explained to facilitate understanding by those skilled in the art.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. The electronic device includes a processor, Memory, signal processor, transceiver, Random Access Memory (RAM), sensor, and the like. The memory, the signal processor, the RAM and the sensor are connected with the processor, and the transceiver is connected with the signal processor.
Wherein the sensor comprises at least one of: light-sensitive sensors, gyroscopes, infrared proximity sensors, fingerprint sensors, pressure sensors, etc. Among them, the light sensor, also called an ambient light sensor, is used to detect the ambient light brightness. The light sensor may include a light sensitive element and an analog to digital converter. The photosensitive element is used for converting collected optical signals into electric signals, and the analog-to-digital converter is used for converting the electric signals into digital signals. Optionally, the light sensor may further include a signal amplifier, and the signal amplifier may amplify the electrical signal converted by the photosensitive element and output the amplified electrical signal to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.
The processor is a control center of the electronic equipment, various interfaces and lines are used for connecting all parts of the whole electronic equipment, and various functions and processing data of the electronic equipment are executed by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory, so that the electronic equipment is monitored integrally.
The processor may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory is used for storing software programs and/or modules, and the processor executes various functional applications and data processing of the electronic equipment by operating the software programs and/or modules stored in the memory. The memory mainly comprises a program storage area and a data storage area, wherein the program storage area can store an operating system, a software program required by at least one function and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The following describes embodiments of the present application in detail.
As shown in fig. 2, a flow diagram of a data obtaining method provided in an embodiment of the present application is applied to the electronic device, and specifically includes the following steps:
step 201: packaging N first application program interfaces into target application program interfaces, and exposing the target application program interfaces, wherein the N first application program interfaces are interfaces of M first application small program platforms, and each first application small program platform corresponds to at least one first application program interface.
Wherein M and N are positive integers, and N is greater than or equal to M.
The functions of the interfaces of different first applet platforms may be the same or different.
The functions of the interfaces of the same applet platform may be different or the same.
Among the K first application program interfaces, there may be interfaces with the same function, and the K first application program interfaces may have different functions.
For example, if there are 3 applet platforms (a1, a2, and A3), the applet platform a1 has 3 interfaces (K1, K2, and K3), the interface K1 has a function of G1, the interface K2 has a function of G2, the interface K3 has a function of G3, the applet platform a2 has 2 interfaces (K4 and K5), the interface K4 has a function of G3, the interface K5 has a function of G4, the applet platform A3 has 2 interfaces (K6 and K7), the interface K6 has a function of G4, and the interface K7 has a function of G5. Thus, the function of interface K3 of the applet platform A1 is the same as the function of interface K4 of the applet platform A2, and the function of interface K5 of the applet platform A2 is the same as the function of interface K6 of the applet platform A3.
The first application program interface may be a communication interface, an interface for acquiring a geographic location, an interface for acquiring a phone number, or the like.
And exposing the target application program interface for interaction between the electronic equipment and the user side.
The user side may be an applet front end or other server side.
Step 202: and receiving an interface calling request from a user side through the target application program interface, wherein the interface calling request carries the identifier of the application program interface which is requested to be called.
The interface call request may be an HTTP request, or may be an interface call request in another form.
The number of the identifiers can be one or more, and the identifiers have uniqueness.
One application program interface can be called, and a plurality of application program interfaces can be called simultaneously.
Step 203: determining a second application program interface among the N first application program interfaces based on the identification and the interface configuration rule.
The interface configuration rule may be stored in a preset database, and the preset database may be a local database.
The number of the second application program interfaces may be one or more.
In one possible implementation manner, before receiving the interface call request through the target application program interface, the method further includes:
establishing an association relationship between the identifier of the target interface and the identifier of each first application program interface to obtain N association relationships;
and determining the N incidence relations as the interface configuration rules.
The rule engine may establish an association relationship between the identifier of the target interface and the identifier of each first application program interface based on a preset rule.
The preset rule may be that the identifier of the target interface and the identifier of each first application program interface have a one-to-one correspondence relationship.
For example, there are 3 first application interfaces (J1, J2, and J3), where the first application interface J1 is identified as a1, the first application interface J2 is identified as a2, the first application interface J3 is identified as A3, and the target interface is identified as a4, and then the association relationships are established as that a1 is associated with a4, that a2 is associated with a4, and that A3 is associated with a 4. Thus, the first application program interface J1 is determined to be the target program interface in the case of receiving the identification a1, the first application program interface J2 is determined to be the target program interface in the case of receiving the identification a2, and the first application program interface J3 is determined to be the target program interface in the case of receiving the identification A3.
Optionally, the preset rule may also be that there is a correspondence between the identifier of the target interface and the interface function, and there is a correspondence between the interface function and the identifier of each first application program interface.
Wherein, the identification comprises a function identification and an application program interface identification.
For example, there are 2 applet platforms (P1 and P2), the applet platform P1 has 2 application interfaces (J1 and J2), the applet platform P1 has 3 application interfaces (J3, J4 and J5), wherein the application interface J1 functions as G1, the application interface J2 functions as G2, the application interface J3 functions as G1, the application interface J4 functions as G2, and the application interface J5 functions as G3, so that in case of receiving the identification about G1 and J1, the function G1 is determined first, and then the application interface J1 is determined.
By configuring the target interface and associating the identifiers of the first application program interface, the target application program interface can be quickly determined after the interface calling request is received, and the data acquisition rate is improved.
Step 204: and acquiring user data of a target application applet platform through the second application program interface, wherein the second application program interface is an interface of the target application applet platform, and the M first application applet platforms comprise the target application applet platform.
When there are multiple second application program interfaces, there may be one or multiple target applet platforms.
It can be seen that, in the embodiment of the present application, first, N first application program interfaces are encapsulated as target application program interfaces and expose the target application program interfaces, where the N first application program interfaces are interfaces of M first applet platforms, then, an interface call request from a user side is received through the target application program interfaces, the interface call request carries an identifier of an application program interface requested to be called, then, based on the identifier and an interface configuration rule, a second application program interface is determined in the N first application program interfaces, and finally, user data of the target applet platform is obtained through the second application program interface, where the second application program interface is an interface of the target applet platform, and the M first application applet platforms include the target applet platform. Since the interfaces of different application small program platforms are packaged into one interface and the packaged interface is exposed to the outside, the interface to be called can be determined directly through the packaged interface, so that the data of the application small program platform can be acquired, and the convenience of acquiring the data is improved.
In a possible implementation manner, when the second application program interface includes S third application program interfaces, and the third application program interface is used to obtain user browsing history data, the user data includes S portions of user browsing history data, the target applet platform includes S first target applet platforms, the S third application program interfaces are in one-to-one correspondence with the S first target applet platforms, and the S third application program interfaces are in one-to-one correspondence with the S portions of user browsing history data;
after the user data of the target applet platform is obtained through the second application program interface, the method further comprises:
determining a first proportion of first data in each user historical browsing data to obtain S first proportions, wherein the first data are data comprising house property information;
determining a second target applet platform among the S first target applet platforms based on the S first ratios, the second target applet platform being for real estate advertisement delivery.
The first data in different historical browsing data may be the same or different.
For example, the first data included in the history browsing data a are property information C1 and property information C2, and the first data included in the history browsing data B are property information C1 and property information C3.
Wherein, the proportion of the first data in different historical browsing data can be different.
And determining the historical browsing data of the user where the first data corresponding to the largest first proportion in the S first proportions is located as the historical browsing data of the target user, and determining the first target application applet platform corresponding to the historical browsing data of the target user as the second target application applet platform.
Therefore, the second target application small program platform is determined based on the proportion of the first data in the historical browsing data of the user, and the efficiency of delivering the house property advertisement is improved.
In one possible implementation, the method further includes:
dividing the S parts of user historical browsing data into T parts of sub-historical browsing data, wherein the T parts of sub-historical browsing data belong to T time periods, and the T parts of sub-historical browsing data correspond to the T time periods one by one;
determining a second proportion of the first data in each sub-historical browsing data to obtain T second proportions;
determining, based on the T second ratios, a type of property released on the second target applet for each of the time periods.
The time intervals are not intersected, the time lengths of the T time intervals are preset, and the time lengths of the T time intervals can be the same or different.
For example, there are 3 pieces of user history browsing data, 4 time periods (D1, D2, D3, and D4), and thus the 3 pieces of user history browsing data are divided into 4 pieces of sub history browsing data (S1, S2, S3, and S4). Wherein D1 corresponds to S1, D2 corresponds to S2, D3 corresponds to S3, and D4 corresponds to S4. Assuming that the proportion of the first data in the sub-history viewed data S1 is 10%, the proportion of the first data in the sub-history viewed data S2 is 15%, the proportion of the first data in the sub-history viewed data S3 is 13%, and the proportion of the first data in the sub-history viewed data S4 is 18%, it is possible to determine the type of property released at different periods based on the proportion of the first data.
And releasing the key house type in the time period corresponding to the maximum second proportion, and releasing the house type with the lowest cost performance in the time period corresponding to the minimum second proportion.
Therefore, the type of the released house property is determined based on the proportion of the first data in the user historical browsing data in different time periods, and the benefit of house property advertisement putting is favorably improved.
In one possible implementation, the method further includes:
determining that first data in user historical browsing data corresponding to the second application target applet platform is second data;
determining N first users and N behavior sets based on the second data, wherein the second data is generated by the first users, the N first users correspond to the N behavior sets one by one, and each behavior set comprises the behavior of the corresponding user on the second data;
determining a target user among the first users based on the N behavior sets;
and pushing the information of the target user to the user side.
The second data comprises identification information of the user and operation identification of the user on the second data.
Wherein, the identification of different operations is different, and the identification of the operation has uniqueness.
In one possible implementation, the determining a target user among the first users based on the N behavior sets includes:
determining the weight of each behavior in each behavior set, the first time number of each behavior implementation and the first time length of each behavior implementation to obtain the value of each behavior set;
determining a target behavior set in the N behavior sets based on each value, wherein the value of the target behavior set is greater than a preset value;
and determining that the first user corresponding to the target behavior set is the target user.
Optionally, a first vector is obtained based on each behavior set, the behavior in each behavior set is a dimension in the first vector, the weight of each behavior is the weight of the dimension in the first vector, and then the first behavior value of each behavior set is determined based on the first vector; then, a second vector is obtained based on each behavior set, the behavior in each behavior set is a dimension in the second vector, the number of times each behavior is implemented is the weight of the dimension in the second vector, and the second behavior value of each behavior set is determined based on the second vector; finally, a third vector is obtained based on each behavior set, the behavior in each behavior set is a dimension in the third vector, the time length of each behavior in the behavior set is the weight of the dimension in the second vector, and the time length value of each behavior set is determined based on the second vector; and finally, obtaining the value of each behavior set based on the sum of the first behavior value, the second behavior value and the duration value.
For example, there is a behavior set a, the behavior set a includes 3 behaviors (behavior 1, behavior 2, and behavior 3), and assuming that the weight of behavior 1 is 1, the weight of behavior 2 is 2, and the weight of behavior 3 is 3, the first vector of the behavior set a can be determined as
Figure BDA0002845315630000091
The first behavioral value is
Figure BDA0002845315630000092
Assuming that behavior 1 is performed 4 times, behavior 2 is performed 3 times, and behavior 3 is performed 3 times, the second vector of behavior set a may be determined to be
Figure BDA0002845315630000093
The second behavior value is
Figure BDA0002845315630000094
Assuming that the duration of the action 1 is performed is 120s, the duration of the action 2 is performed is 60s, and the duration of the action 3 is performed 3 times, the third vector of the action set a is
Figure BDA0002845315630000095
Has a duration value of
Figure BDA0002845315630000096
Thus the value of the behavior set A is
Figure BDA0002845315630000097
Optionally, the first user corresponding to the behavior set may be determined to be the target user when the first behavior value of the behavior set is greater than the first preset value, the second behavior value is greater than the second preset value, and the duration value is greater than the third preset value.
Because of the behavior-based weight, the first number of times a behavior is implemented and the first duration of time the behavior is implemented may accurately determine the user's extensibility.
Referring to fig. 3, in accordance with the embodiment shown in fig. 2, fig. 3 is a schematic structural diagram of another electronic device provided in an embodiment of the present application, and as shown in the figure, the electronic device includes a processor, a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:
packaging N first application program interfaces into target application program interfaces, and exposing the target application program interfaces, wherein the N first application program interfaces are interfaces of M first application small program platforms, each first application small program platform corresponds to at least one first application program interface, M and N are positive integers, and N is larger than or equal to M;
receiving an interface calling request from a user side through the target application program interface, wherein the interface calling request carries an identifier of an application program interface which is requested to be called;
determining a second application program interface in the N first application program interfaces based on the identification and the interface configuration rule;
and acquiring user data of a target application applet platform through the second application program interface, wherein the second application program interface is an interface of the target application applet platform, and the M first application applet platforms comprise the target application applet platform.
In an implementation manner of the present application, before receiving an interface call request through the target application program interface, the program further includes instructions for performing the following steps:
establishing an association relationship between the identifier of the target interface and the identifier of each first application program interface to obtain N association relationships;
and determining the N incidence relations as the interface configuration rules.
In an implementation manner of the present application, when the second application program interface includes S third application program interfaces, where the third application program interfaces are used to obtain user browsing history data, the user data includes S parts of user browsing history data, the target applet platform includes S first target applet platforms, the S third application program interfaces are in one-to-one correspondence with the S first target applet platforms, and the S third application program interfaces are in one-to-one correspondence with the S parts of user browsing history data;
after obtaining the user data of the target applet platform via the second application program interface, the program further includes instructions for performing the steps of:
determining a first proportion of first data in each user historical browsing data to obtain S first proportions, wherein the first data are data comprising house property information;
determining a second target applet platform among the S first target applet platforms based on the S first ratios, the second target applet platform being for real estate advertisement delivery.
In an implementation manner of the present application, the program includes instructions for executing the following steps:
dividing the S parts of user historical browsing data into T parts of sub-historical browsing data, wherein the T parts of sub-historical browsing data belong to T time periods, and the T parts of sub-historical browsing data correspond to the T time periods one by one;
determining a second proportion of the first data in each sub-historical browsing data to obtain T second proportions;
determining, based on the T second ratios, a type of property released on the second target applet for each of the time periods.
In an implementation manner of the present application, the program includes instructions for executing the following steps:
determining that first data in user historical browsing data corresponding to the second application target applet platform is second data;
determining N first users and N behavior sets based on the second data, wherein the second data is generated by the N first users, the N first users correspond to the N behavior sets one by one, and each behavior set comprises the behavior of the corresponding user on the second data;
determining a target user among the first users based on the N behavior sets;
and pushing the information of the target user to the user side.
In one implementation of the present application, in determining a target user among the first users based on the N behavior sets, the program includes instructions for performing the following steps:
determining the weight of each behavior in each behavior set, the first time number of each behavior implementation and the first time length of each behavior implementation to obtain the value of each behavior set;
determining a target behavior set in the N behavior sets based on each value, wherein the value of the target behavior set is greater than a preset value;
and determining that the first user corresponding to the target behavior set is the target user.
It should be noted that, for the specific implementation process of the present embodiment, reference may be made to the specific implementation process described in the above method embodiment, and a description thereof is omitted here.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application, applied to the electronic device, the data acquisition device including:
an encapsulating unit 401, configured to encapsulate N first application program interfaces as target application program interfaces, and expose the target application program interfaces, where the N first application program interfaces are interfaces of M first applet platforms, each first applet platform corresponds to at least one first application program interface, M and N are positive integers, and N is greater than or equal to M;
a receiving unit 402, configured to receive an interface call request from a user side through the target application program interface, where the interface call request carries an identifier of an application program interface requested to be called;
a determining unit 403, configured to determine a second application program interface among the N first application program interfaces based on the identifier and the interface configuration rule;
an obtaining unit 404, configured to obtain user data of a target applet platform through the second application program interface, where the second application program interface is an interface of the target applet platform, and the M first applet platforms include the target applet platform.
In a possible implementation manner, the data obtaining unit further includes a establishing unit 405.
In an implementation manner of the present application, before receiving the interface call request through the target application program interface, the establishing unit 405 is configured to execute the following steps:
establishing an association relationship between the identifier of the target interface and the identifier of each first application program interface to obtain N association relationships;
and determining the N incidence relations as the interface configuration rules.
In an implementation manner of the present application, when the second application program interface includes S third application program interfaces, where the third application program interfaces are used to obtain user browsing history data, the user data includes S parts of user browsing history data, the target applet platform includes S first target applet platforms, the S third application program interfaces are in one-to-one correspondence with the S first target applet platforms, and the S third application program interfaces are in one-to-one correspondence with the S parts of user browsing history data;
after acquiring the user data of the target applet platform through the second application program interface, the determining unit 403 further includes instructions for performing the following steps:
determining a first proportion of first data in each user historical browsing data to obtain S first proportions, wherein the first data are data comprising house property information;
determining a second target applet platform among the S first target applet platforms based on the S first ratios, the second target applet platform being for real estate advertisement delivery.
In an implementation manner of the present application, the determining unit 403 is further configured to execute the following steps:
dividing the S parts of user historical browsing data into T parts of sub-historical browsing data, wherein the T parts of sub-historical browsing data belong to T time periods, and the T parts of sub-historical browsing data correspond to the T time periods one by one;
determining a second proportion of the first data in each sub-historical browsing data to obtain T second proportions;
determining, based on the T second ratios, a type of property released on the second target applet for each of the time periods.
In an implementation manner of the present application, the determining unit 403 is further configured to execute the following steps:
determining that first data in user historical browsing data corresponding to the second application target applet platform is second data;
determining N first users and N behavior sets based on the second data, wherein the second data is generated by the N first users, the N first users correspond to the N behavior sets one by one, and each behavior set comprises the behavior of the corresponding user on the second data;
determining a target user among the first users based on the N behavior sets;
and pushing the information of the target user to the user side.
In an implementation manner of the present application, in determining a target user among the first users based on the N behavior sets, the determining unit 403 is further configured to execute the following steps:
determining the weight of each behavior in each behavior set, the first time number of each behavior implementation and the first time length of each behavior implementation to obtain the value of each behavior set;
determining a target behavior set in the N behavior sets based on each value, wherein the value of the target behavior set is greater than a preset value;
and determining that the first user corresponding to the target behavior set is the target user.
It should be noted that the encapsulating unit 401, the receiving unit 402, the determining unit 403, the obtaining unit 404, and the establishing unit 405 may be implemented by a processor.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, where the computer program causes a computer to execute some or all of the steps described in the electronic device in the above method embodiment.
Embodiments of the present application also provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in the electronic device in the above method. The computer program product may be a software installation package.
The steps of a method or algorithm described in the embodiments of the present application may be implemented in hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash Memory, Read Only Memory (ROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in an access network device, a target network device, or a core network device. Of course, the processor and the storage medium may reside as discrete components in an access network device, a target network device, or a core network device.
Those skilled in the art will appreciate that in one or more of the examples described above, the functionality described in the embodiments of the present application may be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, electronic device, or data center to another website, computer, electronic device, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as an electronic device, data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., Digital Video Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the embodiments of the present application in further detail, and it should be understood that the above-mentioned embodiments are only specific embodiments of the present application, and are not intended to limit the scope of the embodiments of the present application, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of the embodiments of the present application.

Claims (10)

1. A method for data acquisition, the method comprising:
packaging N first application program interfaces into target application program interfaces, and exposing the target application program interfaces, wherein the N first application program interfaces are interfaces of M first application small program platforms, each first application small program platform corresponds to at least one first application program interface, M and N are positive integers, and N is larger than or equal to M;
receiving an interface calling request from a user side through the target application program interface, wherein the interface calling request carries an identifier of an application program interface which is requested to be called;
determining a second application program interface in the N first application program interfaces based on the identification and the interface configuration rule;
and acquiring user data of a target application applet platform through the second application program interface, wherein the second application program interface is an interface of the target application applet platform, and the M first application applet platforms comprise the target application applet platform.
2. The method of claim 1, wherein prior to receiving an interface call request through the target application program interface, the method further comprises:
establishing an association relationship between the identifier of the target interface and the identifier of each first application program interface to obtain N association relationships;
and determining the N incidence relations as the interface configuration rules.
3. The method according to claim 2, wherein in a case that the second application program interface includes S third application program interfaces, and the third application program interfaces are used for acquiring user browsing history data, the user data includes S portions of user browsing history data, the target applet platform includes S first target applet platforms, the S third application program interfaces are in one-to-one correspondence with the S first target applet platforms, and the S third application program interfaces are in one-to-one correspondence with the S portions of user browsing history data;
after the user data of the target applet platform is obtained through the second application program interface, the method further comprises:
determining a first proportion of first data in each user historical browsing data to obtain S first proportions, wherein the first data are data comprising house property information;
determining a second target applet platform among the S first target applet platforms based on the S first ratios, the second target applet platform being for real estate advertisement delivery.
4. The method of claim 3, further comprising:
dividing the S parts of user historical browsing data into T parts of sub-historical browsing data, wherein the T parts of sub-historical browsing data belong to T time periods, and the T parts of sub-historical browsing data correspond to the T time periods one by one;
determining a second proportion of the first data in each sub-historical browsing data to obtain T second proportions;
determining, based on the T second ratios, a type of property released on the second target applet for each of the time periods.
5. The method of claim 3, further comprising:
determining that first data in user historical browsing data corresponding to the second application target applet platform is second data;
determining N first users and N behavior sets based on the second data, wherein the second data is generated by the N first users, the N first users correspond to the N behavior sets one by one, and each behavior set comprises the behavior of the corresponding user on the second data;
determining a target user among the first users based on the N behavior sets;
and pushing the information of the target user to the user side.
6. The method of claim 5, wherein the determining a target user among the first users based on the N sets of behaviors comprises:
determining the weight of each behavior in each behavior set, the first time number of each behavior implementation and the first time length of each behavior implementation to obtain the value of each behavior set;
determining a target behavior set in the N behavior sets based on each value, wherein the value of the target behavior set is greater than a preset value;
and determining that the first user corresponding to the target behavior set is the target user.
7. A data acquisition apparatus, characterized in that the apparatus comprises:
the system comprises an encapsulation unit, a processing unit and a processing unit, wherein the encapsulation unit is used for encapsulating N first application program interfaces into target application program interfaces and exposing the target application program interfaces, the N first application program interfaces are interfaces of M first application applet platforms, each first application applet platform corresponds to at least one first application program interface, the M and the N are positive integers, and the N is greater than or equal to the M;
the receiving unit is used for receiving an interface calling request from a user side through the target application program interface, wherein the interface calling request carries an identifier of an application program interface which is requested to be called;
a determining unit, configured to determine a second application program interface among the N first application program interfaces based on the identifier and an interface configuration rule;
an obtaining unit, configured to obtain user data of a target applet platform through the second application program interface, where the second application program interface is an interface of the target applet platform, and the M first applet platforms include the target applet platform.
8. The apparatus of claim 7, wherein prior to receiving an interface call request through the target application program interface, the apparatus further comprises:
establishing an association relationship between the identifier of the target interface and the identifier of each first application program interface to obtain N association relationships;
and determining the N incidence relations as the interface configuration rules.
9. An electronic device, comprising a processor, memory, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, wherein the computer program is processed to execute instructions of the steps in the method according to any of claims 1-6.
CN202011507338.8A 2020-12-18 2020-12-18 Data acquisition method and related equipment Active CN112612517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011507338.8A CN112612517B (en) 2020-12-18 2020-12-18 Data acquisition method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011507338.8A CN112612517B (en) 2020-12-18 2020-12-18 Data acquisition method and related equipment

Publications (2)

Publication Number Publication Date
CN112612517A true CN112612517A (en) 2021-04-06
CN112612517B CN112612517B (en) 2024-04-05

Family

ID=75240650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011507338.8A Active CN112612517B (en) 2020-12-18 2020-12-18 Data acquisition method and related equipment

Country Status (1)

Country Link
CN (1) CN112612517B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419710A (en) * 2021-06-25 2021-09-21 北京悟空出行科技有限公司 Development method and device of small program, electronic equipment and medium

Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1557996A1 (en) * 2004-01-23 2005-07-27 Hewlett-Packard Development Company, L.P. User profile service
US20150324857A1 (en) * 2014-04-15 2015-11-12 TapFwd, Inc. Cross-platform advertising systems and methods
CN105335876A (en) * 2015-11-05 2016-02-17 精硕世纪科技(北京)有限公司 Effect tracking method and apparatus of advertisement put on media
US20160162172A1 (en) * 2013-08-01 2016-06-09 Yogesh Chunilal Rathod Presenting plurality types of interfaces and functions for conducting various activities
CN106873958A (en) * 2016-07-06 2017-06-20 阿里巴巴集团控股有限公司 The call method and device of a kind of API
CN107645524A (en) * 2016-07-21 2018-01-30 腾讯科技(深圳)有限公司 A kind of message push processing method and device
CN108009026A (en) * 2017-10-27 2018-05-08 深圳市买买提乐购金融服务有限公司 Interface call method, third party's data access platform and computer-readable medium
US20180322209A1 (en) * 2015-10-29 2018-11-08 Guangzhou Shenma Mobile Information Technology Co., Ltd. Method, apparatus, computing device, and machine-readable storage medium for recommending activity information
CN109241427A (en) * 2018-09-04 2019-01-18 中国平安人寿保险股份有限公司 Information-pushing method, device, computer equipment and storage medium
US20190199750A1 (en) * 2017-12-21 2019-06-27 International Business Machines Corporation Temporary interface to provide intelligent application access
CN109960540A (en) * 2019-03-06 2019-07-02 上海连尚网络科技有限公司 Small routine triggering method, computer equipment and storage medium
CN110297969A (en) * 2019-05-24 2019-10-01 平安银行股份有限公司 Information-pushing method, device, computer equipment and storage medium
CN110750295A (en) * 2019-09-30 2020-02-04 联想(北京)有限公司 Information processing method, device, electronic equipment and storage medium
US20200104346A1 (en) * 2018-09-28 2020-04-02 International Business Machines Corporation Bot-invocable software development kits to access legacy systems
CN111159587A (en) * 2019-12-13 2020-05-15 深圳市思为软件技术有限公司 User access information processing method and device and terminal equipment
CN111199784A (en) * 2019-12-30 2020-05-26 北京左医健康技术有限公司 Medication guidance pushing method, device and equipment based on WeChat applet
CN111222922A (en) * 2020-01-08 2020-06-02 腾讯科技(深圳)有限公司 Advertisement putting method and device, advertisement putting server and storage medium
CN111245930A (en) * 2020-01-09 2020-06-05 深圳壹账通智能科技有限公司 Cross-platform message pushing method and device, computer equipment and storage medium
CN111325597A (en) * 2020-01-21 2020-06-23 维沃移动通信有限公司 Application program recommendation method and electronic equipment
WO2020133408A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program priority level adjustment method and apparatus, and storage medium and electronic device
CN111381811A (en) * 2018-12-29 2020-07-07 国网辽宁省电力有限公司信息通信分公司 Software resource integration platform suitable for integration of multiple types of information systems
CN111611022A (en) * 2020-04-26 2020-09-01 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system for applet application
CN111966445A (en) * 2020-06-30 2020-11-20 北京百度网讯科技有限公司 Processing method and device for calling application program interface

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1557996A1 (en) * 2004-01-23 2005-07-27 Hewlett-Packard Development Company, L.P. User profile service
US20160162172A1 (en) * 2013-08-01 2016-06-09 Yogesh Chunilal Rathod Presenting plurality types of interfaces and functions for conducting various activities
US20150324857A1 (en) * 2014-04-15 2015-11-12 TapFwd, Inc. Cross-platform advertising systems and methods
US20180322209A1 (en) * 2015-10-29 2018-11-08 Guangzhou Shenma Mobile Information Technology Co., Ltd. Method, apparatus, computing device, and machine-readable storage medium for recommending activity information
CN105335876A (en) * 2015-11-05 2016-02-17 精硕世纪科技(北京)有限公司 Effect tracking method and apparatus of advertisement put on media
CN106873958A (en) * 2016-07-06 2017-06-20 阿里巴巴集团控股有限公司 The call method and device of a kind of API
CN107645524A (en) * 2016-07-21 2018-01-30 腾讯科技(深圳)有限公司 A kind of message push processing method and device
CN108009026A (en) * 2017-10-27 2018-05-08 深圳市买买提乐购金融服务有限公司 Interface call method, third party's data access platform and computer-readable medium
US20190199750A1 (en) * 2017-12-21 2019-06-27 International Business Machines Corporation Temporary interface to provide intelligent application access
CN109241427A (en) * 2018-09-04 2019-01-18 中国平安人寿保险股份有限公司 Information-pushing method, device, computer equipment and storage medium
US20200104346A1 (en) * 2018-09-28 2020-04-02 International Business Machines Corporation Bot-invocable software development kits to access legacy systems
CN111381811A (en) * 2018-12-29 2020-07-07 国网辽宁省电力有限公司信息通信分公司 Software resource integration platform suitable for integration of multiple types of information systems
WO2020133408A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program priority level adjustment method and apparatus, and storage medium and electronic device
CN109960540A (en) * 2019-03-06 2019-07-02 上海连尚网络科技有限公司 Small routine triggering method, computer equipment and storage medium
CN110297969A (en) * 2019-05-24 2019-10-01 平安银行股份有限公司 Information-pushing method, device, computer equipment and storage medium
CN110750295A (en) * 2019-09-30 2020-02-04 联想(北京)有限公司 Information processing method, device, electronic equipment and storage medium
CN111159587A (en) * 2019-12-13 2020-05-15 深圳市思为软件技术有限公司 User access information processing method and device and terminal equipment
CN111199784A (en) * 2019-12-30 2020-05-26 北京左医健康技术有限公司 Medication guidance pushing method, device and equipment based on WeChat applet
CN111222922A (en) * 2020-01-08 2020-06-02 腾讯科技(深圳)有限公司 Advertisement putting method and device, advertisement putting server and storage medium
CN111245930A (en) * 2020-01-09 2020-06-05 深圳壹账通智能科技有限公司 Cross-platform message pushing method and device, computer equipment and storage medium
CN111325597A (en) * 2020-01-21 2020-06-23 维沃移动通信有限公司 Application program recommendation method and electronic equipment
CN111611022A (en) * 2020-04-26 2020-09-01 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system for applet application
CN111966445A (en) * 2020-06-30 2020-11-20 北京百度网讯科技有限公司 Processing method and device for calling application program interface

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
何瑞娜;贾国强;: "基于微信小程序的地震信息速报系统设计实现", 电脑知识与技术, no. 05 *
李安虎, 周玉斌, 刘海行, 卢铭: "基于WebGIS的海洋科学数据共享平台的分析与设计", 海洋科学进展, no. 01 *
李沂洋;赵浩东;王祖浩;尹宝鑫;刘劲男;: "微信电商平台搜索及推荐系统的接口实现", 现代计算机, no. 26 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419710A (en) * 2021-06-25 2021-09-21 北京悟空出行科技有限公司 Development method and device of small program, electronic equipment and medium
CN113419710B (en) * 2021-06-25 2024-03-15 北京悟空出行科技有限公司 Development method and device of applet, electronic equipment and medium

Also Published As

Publication number Publication date
CN112612517B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
CN105357204B (en) Method and device for generating terminal identification information
CN105426761B (en) A kind of recognition methods of illegal application and mobile terminal
CN108804399B (en) Form verification method and device
CN112491998B (en) Message pushing method and related equipment
CN111563075B (en) Service verification system, method and equipment and storage medium
CN111638983A (en) Interface calling method, interface calling device and terminal equipment
CN113434773B (en) Target recommendation method, device and storage medium
CN112612517B (en) Data acquisition method and related equipment
CN110536016B (en) Network sharing method and related equipment
CN113704117A (en) Algorithm testing system, method and device
CN104636154A (en) Method and device for installing application programs
CN108170585A (en) log processing method, device, terminal device and storage medium
CN112346758B (en) Digital infrastructure service updating platform, updating method and electronic equipment
CN113033584B (en) Data processing method and related equipment
CN111399849A (en) Method and system for determining application program installation package
CN110855740A (en) Information pushing method and related equipment
CN110825396B (en) Exception handling method and related equipment
CN112817782B (en) Data acquisition reporting method and device, electronic equipment and storage medium
CN115695318A (en) Request control method, device and equipment of API gateway and readable storage medium
CN113126857B (en) Data processing method and related equipment
CN110830495A (en) Network access management method and related equipment
CN111859502A (en) Method and related equipment for positioning drawing review result
CN110245016B (en) Data processing method, system, device and terminal equipment
CN110795267A (en) Hierarchical automatic recovery method and related equipment

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
GR01 Patent grant
GR01 Patent grant