Information processing method, electronic device, and storage medium for responding to target link according to request information and pre-agreed interaction protocol
The present disclosure provides an information processing method and apparatus, an electronic device, and a storage medium. The information processing method comprises: in response to a registration operation of a service party, saving the registration information of the service party, the registration information comprising a link registered by the service party; and in response to request information transmitted by a target terminal and related to a target link, determining a target service party of the target link according to the registration information, and transmitting a notification to the target service party, so that the target service party responds to the target link according to the request information and a pre-agreed interaction protocol, wherein the interaction protocol is used for specifying a response mode of the service party to link-related different information.
1 . An information processing method, comprising:
in response to a registration operation of a service party, saving registration information of the service party, the registration information comprising a link registered by the service party; and
in response to request information transmitted by a target terminal and related to a target link, determining a target service party of the target link according to the registration information, and transmitting a notification to the target service party, so that the target service party responds to the target link according to the request information and a pre-agreed interaction protocol,
wherein the transmitting the notification to the target service party, so that the target service party responds to the target link according to the request information and the pre-agreed interaction protocol, comprises:
transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data corresponding to the type of the request information, wherein the type of the request information is associated with a state of the target link in the target terminal, and
wherein the pre-agreed interaction protocol is configured for specifying a response mode of the service party to link-related different information.
2 . The method according to claim 1 ,
further comprising: in response to the preview data transmitted by the target service party, transmitting the preview data to the target terminal, so that the target terminal generates a preview view of the target link.
3 . The method according to claim 2 , wherein the transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data of the target link, comprises:
determining that the request information is first-type request information, and transmitting the notification to the target service party, so that the target service party returns first-type preview data of the target link, wherein the first-type request information is transmitted by the target terminal in response to a target message being located in an information input box, the target message comprising the target link, and the first-type preview data is configured for generating a thumbnail preview view.
4 . The method according to claim 2 , wherein the transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data of the target link, comprises:
determining that the request information is second-type request information, and transmitting the notification to the target service party, so that the target service party returns second-type preview data of the target link, wherein the second-type request information is transmitted by the target terminal in response to receiving a target message in a session interface, the target message comprising the target link, and the second-type preview data is configured for generating a complete preview view.
5 . The method according to claim 4 , wherein the request message is the second-type request information, and before responding to the second-type request information transmitted by the target terminal and related to the target link, the method further comprises:
in response to third-type request information transmitted by the target terminal and related to the target link, transmitting a notification to the target service party, to notify the target service party that the second-type preview data of the target link is to be obtained, wherein the third-type request information is transmitted by the target terminal in response to transmitting the target message comprising the target link.
6 . The method according to claim 5 , wherein in response to request information transmitted by a target terminal and related to a target link, determining a target service party of the target link according to the registration information, and transmitting the notification to the target service party, so that the target service party responds to the target link according to the request information and the pre-agreed interaction protocol, comprises: in response to fourth-type request information transmitted by the target terminal and comprising operation information, transmitting a notification comprising the operation information to the target service party, so that the target service party performs processing according to the operation information; and
the method further comprises: receiving a processing result returned by the target service party, wherein the fourth-type request information is transmitted by the target terminal in response to performing the operation information on a target message, the target message comprising the target link.
7 . The method according to claim 6 , comprising:
in response to the operation information being an operation of withdrawing the target message, the target service party performing processing according to the operation information, comprising: reclaiming a permission endowed by the target message in which the target link is located.
8 . The method according to claim 2 , further comprising:
in response to receiving update data transmitted by the target service party, transmitting the update data to the target terminal, so that the target terminal updates the preview view of the target link.
9 . An electronic device, comprising:
at least one memory and at least one processor,
wherein, the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform an information processing method comprising:
in response to a registration operation of a service party, saving registration information of the service party, the registration information comprising a link registered by the service party; and
in response to request information transmitted by a target terminal and related to a target link, determining a target service party of the target link according to the registration information, and transmitting a notification to the target service party, so that the target service party responds to the target link according to the request information and a pre-agreed interaction protocol,
wherein the transmitting the notification to the target service party, so that the target service party responds to the target link according to the request information and the pre-agreed interaction protocol, comprises:
transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data corresponding to the type of the request information, wherein the type of the request information is associated with a state of the target link in the target terminal, and
wherein the pre-agreed interaction protocol is configured for specifying a response mode of the service party to link-related different information.
10 . A non-transitory computer-readable storage medium configured to store program code which, when run by a processor, causes the processor to perform an information processing method comprising:
in response to a registration operation of a service party, saving registration information of the service party, the registration information comprising a link registered by the service party; and
in response to request information transmitted by a target terminal and related to a target link, determining a target service party of the target link according to the registration information, and transmitting a notification to the target service party, so that the target service party responds to the target link according to the request information and a pre-agreed interaction protocol,
wherein the transmitting the notification to the target service party, so that the target service party responds to the target link according to the request information and the pre-agreed interaction protocol, comprises:
transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data corresponding to the type of the request information, wherein the type of the request information is associated with a state of the target link in the target terminal, and
wherein the pre-agreed interaction protocol is configured for specifying a response mode of the service party to link-related different information.
11 . The electronic device according to claim 9 , wherein
the method further comprises: in response to the preview data transmitted by the target service party, transmitting the preview data to the target terminal, so that the target terminal generates a preview view of the target link.
12 . The electronic device according to claim 11 , wherein the transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data of the target link, comprises:
determining that the request information is first-type request information, and transmitting the notification to the target service party, so that the target service party returns first-type preview data of the target link, wherein the first-type request information is transmitted by the target terminal in response to a target message being located in an information input box, the target message comprising the target link, and the first-type preview data is configured for generating a thumbnail preview view.
13 . The electronic device according to claim 11 , wherein the transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data of the target link, comprises:
determining that the request information is second-type request information, and transmitting the notification to the target service party, so that the target service party returns second-type preview data of the target link, wherein the second-type request information is transmitted by the target terminal in response to receiving a target message in a session interface, the target message comprising the target link, and the second-type preview data is configured for generating a complete preview view.
14 . The electronic device according to claim 13 , wherein the request message is the second-type request information, and before responding to the second-type request information transmitted by the target terminal and related to the target link, the method further comprises: in response to third-type request information transmitted by the target terminal and related to the target link, transmitting a notification to the target service party, to notify the target service party that the second-type preview data of the target link is to be obtained, wherein the third-type request information is transmitted by the target terminal in response to transmitting the target message comprising the target link.
15 . The electronic device according to claim 14 , wherein, in response to request information transmitted by a target terminal and related to a target link, determining a target service party of the target link according to the registration information, and transmitting the notification to the target service party, so that the target service party responds to the target link according to the request information and the pre-agreed interaction protocol, comprises: in response to fourth-type request information transmitted by the target terminal and comprising operation information, transmitting a notification comprising the operation information to the target service party, so that the target service party performs processing according to the operation information; and
the method further comprises: receiving a processing result returned by the target service party, wherein the fourth-type request information is transmitted by the target terminal in response to performing the operation information on a target message, the target message comprising the target link.
16 . The electronic device according to claim 15 , wherein the method comprises:
in response to the operation information being an operation of withdrawing the target message, the target service party performing processing according to the operation information, comprising: reclaiming a permission endowed by the target message in which the target link is located.
17 . The electronic device according to claim 11 , wherein the method comprises:
in response to receiving update data transmitted by the target service party, transmitting the update data to the target terminal, so that the target terminal updates the preview view of the target link.
18 . The medium according to claim 10 , wherein
the method further comprises: in response to the preview data transmitted by the target service party, transmitting the preview data to the target terminal, so that the target terminal generates a preview view of the target link.
19 . The medium according to claim 18 , wherein the transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data of the target link, comprises:
determining that the request information is first-type request information, and transmitting the notification to the target service party, so that the target service party returns first-type preview data of the target link, wherein the first-type request information is transmitted by the target terminal in response to a target message being located in an information input box, the target message comprising the target link, and the first-type preview data is configured for generating a thumbnail preview view.
20 . The medium according to claim 18 , wherein the transmitting the notification to the target service party according to a type of the request information, so that the target service party returns preview data of the target link, comprises:
determining that the request information is second-type request information, and transmitting the notification to the target service party, so that the target service party returns second-type preview data of the target link, wherein the second-type request information is transmitted by the target terminal in response to receiving a target message in a session interface, the target message comprising the target link, and the second-type preview data is configured for generating a complete preview view.