WO2017097262A1 - Data exchange method and apparatus, computer program, and computer-readable medium - Google Patents

Data exchange method and apparatus, computer program, and computer-readable medium Download PDF

Info

Publication number
WO2017097262A1
WO2017097262A1 PCT/CN2016/109407 CN2016109407W WO2017097262A1 WO 2017097262 A1 WO2017097262 A1 WO 2017097262A1 CN 2016109407 W CN2016109407 W CN 2016109407W WO 2017097262 A1 WO2017097262 A1 WO 2017097262A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
interface
user attribute
attribute information
server
Prior art date
Application number
PCT/CN2016/109407
Other languages
French (fr)
Chinese (zh)
Inventor
杨德立
Original Assignee
北京奇虎科技有限公司
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
Priority to CN201510921212.8A priority Critical patent/CN105554094B/en
Priority to CN201510921212.8 priority
Application filed by 北京奇虎科技有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2017097262A1 publication Critical patent/WO2017097262A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L29/00Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00
    • H04L29/02Communication control; Communication processing
    • H04L29/06Communication control; Communication processing characterised by a protocol
    • H04L29/08Transmission control procedure, e.g. data link level control procedure

Abstract

The present invention relates to the field of information technology, and to a data exchange method and apparatus, a computer program, and a computer-readable medium, for resolving the problems of limitation and potential risks during data exchange between a client and a server of existing search service. The technical solution of the present invention comprises: receiving a data instruction sent by a server, the data instruction carrying interface identification information; acquiring user attribute information in a current page according to an interface function corresponding to the interface identification information; and sending the user attribute information to the server. The present invention is mainly used for transferring data of a client to a server.

Description

Data interaction method and device, and computer program and computer readable medium

The present application claims priority to Chinese Patent Application No. 201510921212.8, entitled "Data Interaction Method and Apparatus, and Computer Program and Computer Readable Medium", filed on December 11, 2015, the entire contents of which are incorporated by reference. The citations are incorporated herein by reference.

Technical field

The present invention relates to the field of information technology, and in particular, to a data interaction method and apparatus, and a computer program and a computer readable medium.

Background technique

With the rapid development of information technology, browsers are the largest portal for search services, bringing more than 70% of the search services. However, with the continuous refinement and development of search services, the data provided by the browser is no longer single. In order to ensure that the browser interface can provide customized search services according to different user conditions, it is necessary to obtain browser client data. Separate the source of the data, such as distinguishing users of different channels, users of different locations, users of different sources, etc., and then effectively statistic the data of these clear sources to provide users with customized search services.

At present, the client sends the necessary parameters in the browser address for the server to call the client data, or appends the required data to the cookie for the server to call the client data. However, by appending parameters to the address or appending parameters to the cookie for a specific URL, the method of URL judgment is limited. If a parameter is added to a specific URL, if other URLs want to add parameters, they need to continuously increase the response. URLs to meet the needs, and if the scope of the URL is expanded, some URLs do not require parameters, so control and extension are more limited. In addition, regardless of the use of additional parameters in the address or the addition of cookies, it is easy to expose the client's data, there is a security risk.

Summary of the invention

In view of this, the present invention provides a data interaction method and apparatus, and a computer program and a computer readable medium. The main purpose of the present invention is to solve the limitations and security risks of data interaction between a client and a server of a search service in the prior art. .

According to an aspect of the present invention, a data interaction method is provided, the method comprising:

Receiving, by the server, a data instruction, where the data instruction carries interface identifier information;

Obtaining user attribute information in the current page according to an interface function corresponding to the interface identifier information;

The user attribute information is sent to the server.

According to another aspect of the present invention, a data interaction apparatus is provided, the apparatus comprising:

a receiving module, configured to receive a data command sent by the server, where the data command carries interface identifier information;

a first acquiring module, configured to acquire user attribute information in the current page according to an interface function corresponding to the interface identifier information;

And a sending module, configured to send the user attribute information to the server.

According to still another aspect of the present invention, a computer program is provided comprising computer readable code that, when executed on a computing device, causes the computing device to perform the data interaction method.

According to still another aspect of the present invention, a computer readable medium is provided, wherein the computer program is stored.

With the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:

The data interaction method and device, the computer program and the computer readable medium provided by the embodiment of the present invention first receive the data command sent by the server, where the data command carries the interface identifier information, and then corresponds to the interface identifier information. The interface function obtains the user attribute information in the current page, and finally sends the user attribute information to the server. The embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data. Interface, for the browser side of the browser to call, when the browser's service When the server needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the limitations and security risks of the data interaction between the client and the server in the prior art.

The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.

DRAWINGS

Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:

FIG. 1 is a flowchart of a data interaction method according to an embodiment of the present invention;

FIG. 2 is a flowchart of another data interaction method according to an embodiment of the present invention;

FIG. 3 is a structural block diagram of a data interaction apparatus according to an embodiment of the present invention;

FIG. 4 is a structural block diagram of another data interaction apparatus according to an embodiment of the present invention;

Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention;

Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.

detailed description

Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.

An embodiment of the present invention provides a data interaction method, which is applied to a client of a search service. As shown in FIG. 1 , the method includes:

101. Receive a data instruction sent by a server.

The data command carries interface identifier information, where the interface identifier information is used to indicate a client interface that the server is to invoke. In the embodiment of the present invention, the interface identifier information represents an interface for acquiring client data. The client data can be obtained by using the console.log function to obtain the client data. When the server needs to request the client data, the server first sends a data instruction to the client, and then invokes the console according to the interface identifier information in the data instruction. The log function implementation gets the client data.

For the embodiment of the present invention, the data command carries information such as the type of the data to be received, the method for receiving the data, and the like, and is not specifically limited. The interface identifier information may be specifically defined as “LISTENER_PROVIDE_DATA”, and the interface identifier information “LISTENER_PROVIDE_DATA” indicates that the client data interface is invoked; the data type of the request may be represented by MSG_TYPE, and the received data method may be defined as The CALLBACK method, CALLBACK, is a method for the server to receive data, which is used to call back the data of the client.

For example, the data instruction may specifically be console.log(LISTENER_PROVIDE_DATA+MSG_TYPE+CALLBACK), wherein LISTENER_PROVIDE_DATA is the interface identification information, +MSG_TYPE is the requested data type, and CALLBACK is the method for the server to receive the data.

It should be noted that when the client data is invoked by the embodiment of the present invention, the security problem does not expose the specific interface content. In addition, the data type of the MSG_TYPE identifier may be a default data type, or may be a specified data type, which is not specifically limited in the embodiment of the present invention. The default data type is public data, and the specified data type may be selected according to the version of the browser, or may be selected according to a specific browsing page, which is not specifically limited in the embodiment of the present invention.

102. Acquire user attribute information in the current page according to an interface function corresponding to the interface identifier information.

The attribute information of the user is the information of the browser client user, and the attribute information of the user may be specific identification information, channel number information, location information, and mobile phone number, which are not specifically limited in the embodiment of the present invention. For the embodiment of the present invention, after receiving the data instruction sent by the server, acquiring the client according to the interface function corresponding to the interface identifier information in the data instruction User attribute information, and then call back the user attribute information to the server. It should be noted that when the data type invoked in the server-side data instruction is the default, the information of the calling client is specifically the unique identification information and the channel number information.

103. Send the user attribute information to the server.

For the embodiment of the present invention, the client externally provides the data interface used by the server, when the server needs the data of the client, when the data interface provided by the client is called, and then the client data is obtained according to the function corresponding to the data interface provided by the client. Therefore, the data interface provided by the client satisfies the requirement of the server to retrieve the client data, and the method can flexibly and conveniently satisfy the server to access the client data. Therefore, the server can perform statistics on the acquired user data, and then provide a customized search server for the client according to the statistical result.

A data interaction method provided by the embodiment of the present invention first receives a data command sent by a server, where the data command carries interface identifier information, and then acquires a user attribute in the current page according to an interface function corresponding to the interface identifier information. Information, and finally the user attribute information is sent to the server. The embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data. The interface is used by the server side of the browser to call. When the server side of the browser needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the data between the client and the server in the prior art. Problems with interactions and security risks.

An embodiment of the present invention provides another data interaction method, which is applied to a client of a search service. As shown in FIG. 2, the method includes:

201. Receive a data instruction sent by a server.

The data command carries interface identifier information, where the interface identifier information is used to indicate a client interface that the server is to invoke. In the embodiment of the present invention, the interface identifier information represents an interface for acquiring client data. The client data can be obtained by using the console.log function to obtain the client data. When the server needs to request the client data, the server first sends a data instruction to the client, and then invokes the console according to the interface identifier information in the data instruction. The log function implementation gets the client data. For the embodiment of the present invention, The interface identification information is specifically defined as "LISTENER_PROVIDE_DATA", and the interface identification information "LISTENER_PROVIDE_DATA" indicates that the client data interface is called.

202. Determine whether the interface identifier information is a calling client data interface.

For the embodiment of the present invention, the browser client rewrites the customized onConsoleMessage method through the WebChromeClient method, and determines whether the interface identifier information sent by the server is LISTENER_PROVIDE_DATA in the onConsoleMessage method, and if so, the data command sent by the server is adjusted. The command of the client data can be obtained in the subsequent steps to obtain the user attribute information of the browser client. The onConsoleMessage method is used to listen to the content of the data instruction sent by the server, so that the client performs corresponding processing operations according to the monitored content.

203. If the interface identifier information is a calling client data interface, determine whether the current page is a page that supports providing data.

204. If the current page is a page that supports providing data, obtain user attribute information in the current page according to an interface function corresponding to the calling interface identifier information.

The attribute information of the user is the information of the browser client user, and the attribute information of the user may be specific identification information, channel number information, location information, and mobile phone number, which are not specifically limited in the embodiment of the present invention. For the embodiment of the present invention, after receiving the data instruction sent by the server, the user attribute information of the client is obtained according to the interface function corresponding to the interface identifier information in the data instruction, and then the user attribute information is returned to the server. It should be noted that when the data type invoked in the server-side data instruction is the default, the information of the calling client is specifically the unique identification information and the channel number information.

For the embodiment of the present invention, the data instruction further includes a data type of the request and a method for receiving the data, where the acquiring the user attribute information in the current page according to the interface function corresponding to the calling interface identifier information includes: The data instruction is parsed to obtain the data type of the request and the method for receiving the data; and the user attribute corresponding to the requested data type in the current page is obtained according to an interface function corresponding to the calling interface identification information. information. The data type of the request may be represented by an MSG_TYPE, and the received data method may be defined as a CALLBACK method, and the CALLBACK is a method for receiving data by the server, where Callback data from the client. For example, if the data type parsed from the data instruction is the channel number information and the location information, the channel number information and the location information of the user are obtained from the client, and then the obtained information is sent to the server.

It should be noted that when the client data is invoked by the embodiment of the present invention, the security problem does not expose the specific interface content. In addition, the data type of the MSG_TYPE identifier may be a default data type, or may be a specified data type, which is not specifically limited in the embodiment of the present invention. The default data type is public data, and the specified data type may be selected according to the version of the browser, or may be selected according to a specific browsing page, which is not specifically limited in the embodiment of the present invention.

205. Encapsulate the user attribute information according to the requested data type.

For the embodiment of the present invention, the requested data type may be encapsulated by the getDataForProvide(type) method, so as to send the encapsulated data to the server in a subsequent step.

206. Send the encapsulated user attribute information to the server according to the data receiving method.

The method for receiving data is defined by the server, and the method for receiving the data is included in the data command transmitted to the client. The client parses the received data from the data instruction, and sends the encapsulated user attribute information to the server by the method of receiving data. In the embodiment of the present invention, the data receiving method may be defined as a callback method, and if the data receiving method parsed by the client is a callback method, when the client sends the attribute information of the user to the server, the method is sent by the callback method. of. Therefore, the data interface provided by the client satisfies the requirement of the server to retrieve the client data, and the method can flexibly and conveniently satisfy the server to access the client data. Therefore, the server can provide a customized search server for the client according to the statistics of the acquired user data.

In the embodiment of the present invention, the data command sent by the server is first received, where the data command carries the interface identifier information, and then determines whether the interface identifier information is a calling client data interface, and if the interface identifier information is a calling client End data interface, then continue to determine whether the current page is a page that supports providing data. If the current page is a page that supports providing data, the interface function corresponding to the calling interface identification information is used to obtain the current page. User attribute information. And then encapsulating the user attribute information according to the data type of the request, and finally sending the encapsulated user attribute information to the server according to the data receiving method. Therefore, the problems of the data interaction between the client and the server in the prior art and the security risks are solved.

Another data interaction method provided by the embodiment of the present invention first receives a data command sent by a server, where the data command carries interface identifier information, and then acquires a user in the current page according to an interface function corresponding to the interface identifier information. The attribute information is finally sent to the server. The embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data. The interface is used by the server side of the browser to call. When the server side of the browser needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the data between the client and the server in the prior art. Problems with interactions and security risks.

Further, a data interaction device is provided in the embodiment of the present invention. As shown in FIG. 3, the device includes: a receiving module 31, a first obtaining module 32, and a sending module 33.

The receiving module 31 is configured to receive a data command sent by the server, where the data command carries interface identifier information.

The first obtaining module 32 is configured to obtain user attribute information in the current page according to an interface function corresponding to the interface identifier information.

The sending module 33 is configured to send the user attribute information to the server.

It should be noted that, for other corresponding descriptions of the functional units involved in the data interaction apparatus provided by the embodiments of the present invention, reference may be made to the corresponding description of the method shown in FIG. 1 , and details are not described herein again.

A data interaction device provided by the embodiment of the present invention first receives a data command sent by a server, where the data command carries interface identifier information, and then acquires a user attribute in the current page according to an interface function corresponding to the interface identifier information. Information, and finally the user attribute information is sent to the server. The embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data. Interface for browser The server side makes a call. When the server side of the browser needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the limitation of the data interaction between the client and the server in the prior art. Security risks and other issues.

Further, another data interaction device provided by the embodiment of the present invention, as shown in FIG. 3, includes: a receiving module 41, a first obtaining module 42, and a sending module 43.

The receiving module 41 is configured to receive a data command sent by the server, where the data command carries interface identifier information.

The first obtaining module 42 is configured to obtain user attribute information in the current page according to an interface function corresponding to the interface identifier information.

The sending module 43 is configured to send the user attribute information to the server.

Further, the device further includes: a determining module 44;

The determining module 44 is configured to determine whether the interface identifier information is a calling client data interface.

The first obtaining module 42 is specifically configured to: if the interface identifier information is a calling client data interface, obtain the user attribute information in the current page according to an interface function corresponding to the calling interface identifier information.

The determining module 44 is further configured to: if the interface identifier information is a calling client data interface, determine whether the current page is a page that supports providing data.

The first obtaining module 42 is specifically configured to: if the current page is a page that supports providing data, obtain the user attribute information in the current page according to an interface function corresponding to the calling interface identification information.

Further, the data instruction further includes a requested data type and a method for receiving data, where the first obtaining module 42 includes:

The parsing module 421 is configured to parse the data instruction to obtain the requested data type and the method for receiving the data.

The second obtaining module 422 is configured to obtain, according to an interface function corresponding to the calling interface identifier information, user attribute information corresponding to the requested data type in the current page.

Further, the device further includes:

The encapsulating module 45 is configured to encapsulate the user attribute information according to the requested data type.

The sending module 43 is specifically configured to send the encapsulated user attribute information to the server according to the data receiving method.

It should be noted that other corresponding descriptions of the functional units involved in another data interaction apparatus provided by the embodiment of the present invention may be referred to the corresponding description of the method shown in FIG. 2, and details are not described herein again.

Another data interaction device provided by the embodiment of the present invention first receives a data command sent by a server, where the data command carries interface identifier information, and then acquires a user in the current page according to an interface function corresponding to the interface identifier information. The attribute information is finally sent to the server. The embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data. The interface is used by the server side of the browser to call. When the server side of the browser needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the data between the client and the server in the prior art. Problems with interactions and security risks.

In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.

The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the data interaction method and apparatus in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

For example, Figure 5 illustrates a computing device that can implement a data interaction method in accordance with the present invention. The computing device conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a memory 520. The memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above. For example, storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 531 ', ie, code readable by a processor, such as 510, that when executed by a computing device causes the computing device to perform each of the methods described above step.

It will be appreciated that related features in the above methods and apparatus can be referenced to each other. In addition, "first", "second", and the like in the above embodiments are used to distinguish the embodiments, and do not represent the advantages and disadvantages of the embodiments.

A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.

The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teaching based on the teachings herein. The structure required to construct such a system is apparent from the above description. Moreover, the invention is not directed to any particular programming language. It is to be understood that the invention may be embodied in a variety of programming language, and the description of the specific language has been described above in order to disclose the preferred embodiments of the invention.

In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.

Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.

Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.

In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.

It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these may Therefore, it is embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.

Claims (14)

  1. A data interaction method, comprising:
    Receiving, by the server, a data instruction, where the data instruction carries interface identifier information;
    Obtaining user attribute information in the current page according to an interface function corresponding to the interface identifier information;
    The user attribute information is sent to the server.
  2. The method according to claim 1, wherein the method further comprises: before acquiring the user attribute information in the current page according to the interface function corresponding to the interface identifier information, the method further comprising:
    Determining whether the interface identifier information is a calling client data interface;
    The obtaining the user attribute information in the current page according to the interface function corresponding to the interface identifier information includes:
    If yes, the user attribute information in the current page is obtained according to an interface function corresponding to the calling interface identifier information.
  3. The method according to claim 2, wherein after the determining whether the interface identifier information is a calling client data interface, the method further comprises:
    If the interface identifier information is a calling client data interface, determining whether the current page is a page that supports providing data;
    The obtaining the user attribute information in the current page according to the interface function corresponding to the calling interface identifier information includes:
    If the current page is a page that supports providing data, the user attribute information in the current page is obtained according to an interface function corresponding to the calling interface identification information.
  4. The method according to claim 3, wherein the data instruction further carries a requested data type and a method for receiving data, and the interface function corresponding to the calling interface identification information acquires a current page. User attribute information includes:
    Parsing the data instruction to obtain the requested data type and the method of receiving the data;
    Obtaining user attribute information corresponding to the requested data type in the current page according to an interface function corresponding to the calling interface identifier information.
  5. The method according to claim 4, wherein before the sending the user attribute information to the server, the method further comprises:
    Encapsulating the user attribute information according to the requested data type.
  6. The method of claim 5, the transmitting the user attribute information to the server comprises:
    And according to the method for receiving data, the encapsulated user attribute information is sent to the server.
  7. A data interaction device, comprising:
    a receiving module, configured to receive a data command sent by the server, where the data command carries interface identifier information;
    a first acquiring module, configured to acquire user attribute information in the current page according to an interface function corresponding to the interface identifier information;
    And a sending module, configured to send the user attribute information to the server.
  8. The device according to claim 7, wherein the device further comprises: a determining module;
    The determining module is configured to determine whether the interface identifier information is a calling client data interface;
    The first obtaining module is specifically configured to: if the interface identifier information is a calling client data interface, obtain the user attribute information in the current page according to an interface function corresponding to the calling interface identifier information.
  9. The device of claim 8 wherein:
    The determining module is further configured to: if the interface identifier information is a calling client data interface, determine whether the current page is a page that supports providing data;
    The first obtaining module is specifically configured to: if the current page is a page that supports providing data, obtain the user attribute information in the current page according to an interface function corresponding to the calling interface identification information.
  10. The apparatus according to claim 9, wherein said data command is carried With the requested data type and the method for receiving data, the first obtaining module includes:
    a parsing module, configured to parse the data instruction to obtain the requested data type and the method for receiving the data;
    The second obtaining module is configured to obtain, according to an interface function corresponding to the calling interface identifier information, user attribute information corresponding to the requested data type in the current page.
  11. The device according to claim 10, wherein the device further comprises:
    And an encapsulating module, configured to encapsulate the user attribute information according to the requested data type.
  12. The device of claim 11
    The sending module is specifically configured to send the encapsulated user attribute information to the server according to the data receiving method.
  13. A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the data interaction method of any of claims 1-6.
  14. A computer readable medium storing the computer program of claim 13.
PCT/CN2016/109407 2015-12-11 2016-12-12 Data exchange method and apparatus, computer program, and computer-readable medium WO2017097262A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510921212.8A CN105554094B (en) 2015-12-11 2015-12-11 Data interactive method and device
CN201510921212.8 2015-12-11

Publications (1)

Publication Number Publication Date
WO2017097262A1 true WO2017097262A1 (en) 2017-06-15

Family

ID=55833026

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109407 WO2017097262A1 (en) 2015-12-11 2016-12-12 Data exchange method and apparatus, computer program, and computer-readable medium

Country Status (2)

Country Link
CN (1) CN105554094B (en)
WO (1) WO2017097262A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554094B (en) * 2015-12-11 2019-03-08 北京奇虎科技有限公司 Data interactive method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736910A (en) * 2011-05-11 2012-10-17 新奥特(北京)视频技术有限公司 Plugin-based general command interface definition method
CN102801737A (en) * 2012-08-28 2012-11-28 北京城市网邻信息技术有限公司 Asynchronous network communication method and device
CN103077032A (en) * 2013-01-06 2013-05-01 北京百度网讯科技有限公司 Operation method for application program and application program client-side
CN103957211A (en) * 2014-04-30 2014-07-30 北界创想(北京)软件有限公司 Method and device for data communication between client and front end page
CN105554094A (en) * 2015-12-11 2016-05-04 北京奇虎科技有限公司 Method and device for data interaction

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030069915A1 (en) * 2001-10-09 2003-04-10 James Clough Method for authenticating mobile printer users
US8924459B2 (en) * 2005-10-21 2014-12-30 Cisco Technology, Inc. Support for WISPr attributes in a TAL/CAR PWLAN environment
CN101018141B (en) * 2007-03-02 2010-06-30 李沫南 Method and system for providing the instant communication for the electronic bulletin board
CN103905502B (en) * 2012-12-27 2018-02-23 中国移动通信集团江苏有限公司 A kind of method and system for obtaining customer position information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736910A (en) * 2011-05-11 2012-10-17 新奥特(北京)视频技术有限公司 Plugin-based general command interface definition method
CN102801737A (en) * 2012-08-28 2012-11-28 北京城市网邻信息技术有限公司 Asynchronous network communication method and device
CN103077032A (en) * 2013-01-06 2013-05-01 北京百度网讯科技有限公司 Operation method for application program and application program client-side
CN103957211A (en) * 2014-04-30 2014-07-30 北界创想(北京)软件有限公司 Method and device for data communication between client and front end page
CN105554094A (en) * 2015-12-11 2016-05-04 北京奇虎科技有限公司 Method and device for data interaction

Also Published As

Publication number Publication date
CN105554094B (en) 2019-03-08
CN105554094A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
US20180309819A1 (en) Endpoint management system providing an application programming interface proxy service
US20160065684A1 (en) Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
US20190320035A1 (en) Method and Apparatus for Automatically Optimizing the Loading of Images in a Cloud-Based Proxy Service
US20150058407A1 (en) Systems, methods, and apparatuses for implementing the simultaneous display of multiple browser client cursors at each browser client common to a shared browsing session
US9485240B2 (en) Multi-account login method and apparatus
KR20150098634A (en) System and method for displaying multiple applications
EP3032418A1 (en) Permission control method and device
US9697353B2 (en) Method and device for intercepting call for service by application
CN103942225B (en) A kind of resource transfer method, client and the system of mixed type applications client
KR20170038793A (en) Fast rendering of websites containing dynamic content and stale content
US20140181262A1 (en) Use of internet information services logging to collect user information in an asynchronous manner
JP6306187B2 (en) Dynamic telephone number assignment
US9544335B2 (en) Method and system for local calling via webpage
US10509841B2 (en) Inferred user identity in content distribution
CN103744985A (en) Webpage adaption method and webpage adaption system
US20140298313A1 (en) Method, server, client and system for updating data
US20170324859A1 (en) Information processing method, terminal, and computer-readable storage medium
US9794242B2 (en) Method, apparatus and application platform for realizing logon to an application service website
CN102819451B (en) A kind of browser plug-in call method and system
US8825749B2 (en) Method of tracking offline user interaction in a rendered document on a mobile device
WO2015062243A1 (en) Information display method and device
US20130246609A1 (en) Methods and apparatus to track web browsing sessions
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
US9613156B2 (en) Cookie information sharing method and system
WO2012082397A1 (en) Methods and apparatus for enabling a hybrid web and native application

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16872451

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16872451

Country of ref document: EP

Kind code of ref document: A1