CN110442285A - A kind of method and device that information is shared - Google Patents

A kind of method and device that information is shared Download PDF

Info

Publication number
CN110442285A
CN110442285A CN201910656903.8A CN201910656903A CN110442285A CN 110442285 A CN110442285 A CN 110442285A CN 201910656903 A CN201910656903 A CN 201910656903A CN 110442285 A CN110442285 A CN 110442285A
Authority
CN
China
Prior art keywords
sharing
trigger action
parameter
approach
shares
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910656903.8A
Other languages
Chinese (zh)
Inventor
古栋辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pocket Fashion Technology Co Ltd
Original Assignee
Beijing Pocket Fashion 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 Beijing Pocket Fashion Technology Co Ltd filed Critical Beijing Pocket Fashion Technology Co Ltd
Priority to CN201910656903.8A priority Critical patent/CN110442285A/en
Publication of CN110442285A publication Critical patent/CN110442285A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the method and devices that a kind of information is shared, this method comprises: obtaining user to the first trigger action for sharing channel button;It is determined according to first trigger action and shares parameter;The sharing parameter includes sharing approach to sharing contents and target;The sharing request of preset unified format is generated according to the sharing parameter, and is sent to sharing service;By the sharing service, approach is shared according to the target and calls corresponding sharing channel interface;By the sharing service, the sharing parameter is matched with the corresponding sharing channel interface.It is simpler quick that the technical solution not only makes information share process, and simplifies development process, improves the development efficiency of developer.

Description

A kind of method and device that information is shared
Technical field
The present invention relates to the method and devices that technical field of information processing more particularly to a kind of information are shared.
Background technique
Currently, with the development of Internet technology and intelligent terminal, application program is widely used in daily life In, more and more application platforms, such as microblogging, wechat, QQ, E-business applications and traditional webpage etc. pass through difference Method support corresponding information sharing function, user can carry out information point by the web application in intelligent terminal It enjoys.
It specifically, include: such as to incite somebody to action by the concrete operations that the web application in intelligent terminal carries out information sharing When a certain atlas or a certain article are shared with other users, are opened and shared in detail by the sharing button provided in the clicking operation page Feelings page clicks the destination application that selection needs to carry out information sharing in sharing details page;Information can with link, picture or The sharings form such as small routine is shared into the destination application chosen.Developer when developing the sharing function, need by Different sharing forms is docked by a large amount of codes API corresponding with destination application.
Summary of the invention
The embodiment of the present invention provides a kind of method and device that information is shared, and so that information is shared process simpler fast Victory, and development process is simplified, improve the development efficiency of developer.The technical solution is as follows:
According to a first aspect of the embodiments of the present invention, a kind of method that information is shared is provided, comprising:
User is obtained to the first trigger action for sharing channel button;
It is determined according to first trigger action and shares parameter;The sharing parameter includes to sharing contents and target point Enjoy approach;
The sharing request of preset unified format is generated according to the sharing parameter, and is sent to sharing service;
By the sharing service, approach is shared according to the target and calls corresponding sharing channel interface;
By the sharing service, the sharing parameter is matched with the corresponding sharing channel interface.
Technical solution provided in an embodiment of the present invention can include the following benefits: the technical solution is clicked by user It after sharing channel button, determines and shares parameter, and generate the sharing request of preset unified format, sharing request, which is called, to be shared Service, sharing service share channel according to target and share sharing contents.Wherein, user under any operating environment (no With operating system or different APP in or the H5 page in) click any channel button of sharing and generate the sharing of preset format Sharing service is requested and called, in this process, area is not carried out to sharing channel, sharing contents, operating system or APP etc. Point, then shared by the API that sharing service docks sharing channel, so, develops sharing function in the application When, it can complete to develop using the sharing request and preset sharing service of unified format, to simplify development process, mention The high development efficiency of developer.Meanwhile by calling the same sharing service to carry out information sharing, information sharing is simplified Process.
In one embodiment, the sharing request that preset unified format is generated according to the sharing parameter, comprising:
By the sharing parameter according to the format of hypertext transfer protocol defined, and in the form of character string, generate pre- If unified format sharing request.
Technical solution provided in an embodiment of the present invention can include the following benefits: the sharing request of the technical solution is General hypertext transfer protocol is sent to sharing service for parameter is shared by hypertext transfer protocol, further improves The versatility of information sharing method extends the usage scenario of information sharing method.
In one embodiment, in the sharing request further include: local service identification and sharing service mark;
By the local service identification, sharing service mark with the parameter of sharing according to hypertext transfer protocol defined Format generate the sharing request of preset unified format and in the form of character string.
Technical solution provided in an embodiment of the present invention can include the following benefits: the technical solution passes through local service Mark and sharing service mark can be with rapid links to preset sharing service, suitable for easily adjusting under different operating environments With sharing service, the versatility of information sharing method is further improved.
In one embodiment, described by the sharing service, channel is shared according to the target and calls corresponding point Before enjoying channel interface, the method also includes:
By the sharing service, shares to sharing contents channel with target by described to be converted to different operating system corresponding Entity object.
Technical solution provided in an embodiment of the present invention can include the following benefits: the technical solution passes through sharing service The entity object that Parameter Switch is different operating system will be shared, in order to the subsequent language source code with different operating system Sharing service is programmed.
In one embodiment, the method also includes:
User is obtained to the second trigger action for sharing button;
Pattern, which is exported, according to second trigger action selects the page;
Receive the third trigger action for the pattern selection page;
Show Styles is determined according to the third trigger action;
Described determined according to first trigger action shares parameter, comprising:
It is determined according to first trigger action and Show Styles to sharing contents;
Determine that target shares approach according to the first trigger action.
Technical solution provided in an embodiment of the present invention can include the following benefits: the technical solution passes through Show Styles Different patterns can will be shown after sharing contents are shared, to increase the dimension of information sharing, share information more Sample, and then meet the needs of different user, the user experience is improved spends.
In one embodiment, described determined according to first trigger action shares parameter, and the sharing parameter includes Share approach to sharing contents and target, comprising:
The target shares approach, comprising: level-one shares sub- approach and shares sub- approach with second level;
It is determined according to first trigger action to sharing contents;And
Determine that target shares approach according to first trigger action, it includes: that level-one shares son that the target, which shares approach, Approach;
It obtains the level-one and shares the corresponding sharing list object of sub- approach;
User is obtained to the 4th trigger action for sharing list object;
According to the 4th trigger action, determine that target shares approach;The target shares approach further include: second level is shared Sub- approach.
According to a second aspect of the embodiments of the present invention, a kind of information sharing apparatus is provided, comprising:
First obtains module, for obtaining user to the first trigger action for sharing channel button;
First determining module shares parameter for determining according to first trigger action;The sharing parameter include to Sharing contents and target share approach;
Generation module for generating the sharing request of preset unified format according to the sharing parameter, and is sent to point The service of enjoying;
Sharing service module calls corresponding sharing channel interface for sharing approach according to the target;
The sharing parameter is matched with the corresponding sharing channel interface.
In one embodiment, the generation module, comprising:
Submodule is generated, for the format by the sharing parameter according to hypertext transfer protocol defined, and with character The form of string generates the sharing request of preset unified format.
In one embodiment, in the sharing request further include: local service identification and sharing service mark;
The generation submodule, be also used to by the local service identification, sharing service mark with it is described share parameter by According to the format of hypertext transfer protocol defined, and in the form of character string, the sharing request of preset unified format is generated.
In one embodiment, the sharing service module is also used to share approach with target to sharing contents for described Be converted to the corresponding entity object of different operating system.
In one embodiment, described device further include:
Second obtains module, for obtaining user to the second trigger action for sharing button;
Output module selects the page for exporting pattern according to second trigger action;
Receiving module, for receiving the third trigger action for being directed to the pattern selection page;
Second determining module, for determining Show Styles according to the third trigger action;
First determining module, comprising:
First determines submodule, for being determined according to first trigger action and Show Styles to sharing contents;
Second determines submodule, for determining that target shares approach according to first trigger action.
In one embodiment, the target shares approach, comprising: level-one shares sub- approach and shares sub- approach with second level; First determining module, comprising:
Third determines submodule, and for determining that target shares approach according to first trigger action, the target is shared Approach includes: that level-one shares sub- approach;
First acquisition submodule shares the corresponding sharing list object of sub- approach for obtaining the level-one;
Second acquisition submodule, for obtaining user to the 4th trigger action for sharing list object;
4th determines submodule, for determining that target shares approach according to the 4th trigger action;The target is shared Approach further include: second level shares sub- approach.
According to a third aspect of the embodiments of the present invention, a kind of information sharing apparatus is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
User is obtained to the first trigger action for sharing channel button;
It is determined according to first trigger action and shares parameter;The sharing parameter includes to sharing contents and target point Enjoy approach;
The sharing request of preset unified format is generated according to the sharing parameter, and is sent to sharing service;
By the sharing service, approach is shared according to the target and calls corresponding sharing channel interface;
By the sharing service, the sharing parameter is matched with the corresponding sharing channel interface.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine instruction, which is characterized in that the method that information described in any of the above-described scheme is shared is realized in instruction when being executed by processor Step.
The technical solution that the embodiment of the present invention provides can include the following benefits:
After above-mentioned technical proposal clicks sharing channel button by user, determines and share parameter, and generate preset system The sharing request of one format, sharing request call sharing service, and sharing service shares channel according to target and carries out sharing contents Share.Wherein, user clicks (in different operating system or different APP or in the H5 page) any under any operating environment Share channel button generates the sharing request of preset format and calls sharing service, in this process, not to sharing channel, Sharing contents, operating system or APP etc. are distinguished, and are then shared by the API that sharing service docks sharing channel, in this way One, when developing sharing function in the application, the sharing request using the unified format for sharing parameter is shared with preset Service can be completed to develop, to simplify development process, improve the development efficiency of developer.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
Fig. 2 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
Fig. 3 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
Fig. 4 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
Fig. 5 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
Fig. 6 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
Fig. 7 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
Fig. 8 is a kind of block diagram of information sharing apparatus shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of information sharing apparatus shown according to an exemplary embodiment.
Figure 10 is a kind of block diagram of information sharing apparatus shown according to an exemplary embodiment.
Figure 11 is a kind of block diagram of information sharing apparatus shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
In the related technology, by the concrete operations that web application in intelligent terminal carries out information sharing include: as When a certain picture or a certain article are shared with other users, beaten by the sharing function button provided in the clicking operation page It opens and shares details page, sharing channel button (wechat good friend, friend that selection needs to carry out information sharing are clicked in sharing details page Good friend etc. where friend's circle or microblogging and sharing contents in application program);Information can be shared with link, picture or small routine etc. Form is shared into the sharing channel chosen, and that is to say that channel button is shared in click, calls the API of corresponding sharing (Application Programming Interface, application programming interface).Developer is developing the sharing function When, it needs the different corresponding sharing forms of sharing channel passing through a large amount of written in code API corresponding with destination application It is docked.When needing the operation such as sharing channel to be increased or modified, it may be necessary to increase whole code or modification newly Many places code, it is also possible to need to send out application program again version, developer, which needs to do biggish workload, to complete.Example Such as, by taking e-commerce purchases as an example, it is aobvious in the form of a link after sharing that user, which shares to a certain commodity to wechat good friend, Show in the dialog box of wechat good friend;And according to the demand of user, now need for the sharing form to be revised as picture form or Person increases the sharing channel of circle of friends, that is to say to share to wechat good friend Shi Shi a certain commodity and is shown in the form of picture Or a certain commodity are shared to circle of friends and are shown in the form of the big figure of circle of friends, in this way, developer needs to share The code of channel carries out whole modifications, it is also possible to version is sent out again, thus, developer needs to do a large amount of work, exploitation Intricate operation, development efficiency are lower.
Meanwhile needing individually exploitation each different operating system, different APP (Application, application program) From sharing function, and H5 (HTML5, the standard language of the description webpage of the 5th version) page is divided in each APP When enjoying functional development, shared again after needing APP to be translated, for the same H5 page, the needs of each APP are individually opened The sharing function of the H5 page is sent out, development is cumbersome, and development cost is higher.
To solve the above problems, not only making information share process more the present embodiment provides a kind of method that information is shared It is simple and fast, and development process is simplified, improve the development efficiency of developer.
Fig. 1 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared, as shown in Figure 1, should Method is for including the following steps 101-105 in terminal:
In a step 101, user is obtained to the first trigger action for sharing channel button;
In a step 102, it is determined according to first trigger action and shares parameter;The sharing parameter includes wait in sharing Hold and target shares approach;
In step 103, the sharing request of preset unified format is generated according to the sharing parameter, and is sent to sharing Service;
At step 104, by the sharing service, approach is shared according to the target, corresponding sharing channel is called to connect Mouthful;
In step 105, by the sharing service, by the sharing parameter and the corresponding sharing channel interface into Row matching.
In this embodiment, in the display interface of application program, user carries out the first triggering behaviour to channel button is shared After work, user is obtained to the first trigger action for sharing channel button, sharing channel button is any sharing shared in interface The button of channel, for example, clicking " sharing " printed words button in display interface or sharing icon, pop-up, pop-up are shared in pop-up In show multiple and different sharing channel buttons, a kind of each sharing channel of sharing channel button indication.Click any sharing After channel button, determines and share parameter, wherein to sharing contents include but is not limited to content sources, content title, content address (URL, Uniform Resource Locator, uniform resource locator) and/or share the parameters such as description, content address can be with Determine that for example, it is desired to be shared in the form of link, then content address includes jump address and thumbnail according to the form of sharing Address;For another example need by scheme greatly or video in the form of share, then content address includes jump address and big figure address, or view Frequency address and thumbnail address etc..It is the parameter distinguished to sharing channel and form, different targets that target, which shares approach, Sharing approach is indicated with any unique form, such as wechat good friend link is a kind of sharing channel+sharing form, is indicated To share in the form of a link to wechat good friend, can be indicated with a kind of parameter, the big figure of QQ friends is then indicated with another parameter, These parameters are that target shares approach.
The format of sharing request in the present embodiment is format predetermined, is the format that sharing service can parse Sharing request, include but is not limited to the type for sharing parameter, the form for sharing parameter etc. in sharing request, can also include point Enjoy the sequence of parameter.The sharing request that unified format is generated according to the sharing parameter that any sharing channel button determines, shares Request does not distinguish sharing channel, sharing contents, operating system or APP etc., and sharing request is sent to sharing service, Corresponding sharing channel interface (sharing channel API) is called by the same sharing service, and sharing service will share parameter It is matched with corresponding sharing channel interface, completes the sharing to sharing contents.In this course, no matter user's triggering is appointed What sharing channel button, calls the same sharing service, and the sharing of information is carried out by sharing service.
In one embodiment, sharing service preset can be preset in the application, in sharing service multiple and different Target share approach, it is corresponding with channel interface is shared that preset target shares approach, after sharing service reception sharing request, Sharing request is parsed, the target in sharing request is obtained and shares approach and to sharing contents, share in preset target Preset target corresponding with the target sharing approach in sharing request is searched in approach and shares approach, it is understood that being will Target sharing approach in sharing request shares approach with preset target and matches, and finds corresponding preset target point Preset target is called to share the corresponding sharing channel interface of approach after enjoying approach, meanwhile, it will be to sharing contents and corresponding point Channel interface is enjoyed to be matched, wherein to sharing contents with share channel interface and carry out mapping matching by mapping relations, will be to Sharing contents, which are transferred to, shares channel interface, and sharing channel interface will share to sharing contents.Wherein, share channel interface It will be shared in the form of sharing to sharing contents by a kind of sharing channel, such as target is shared approach and indicated with wechat good friend's chain Capable sharing is tapped into, then is shared content to be shared in the form that wechat good friend links.
In the present embodiment, user (different operating system such as Android and iOS or different under any operating environment In APP or in the H5 page) it clicks any sharing channel button and generates the sharing request of preset format and call sharing service, In Before calling sharing service, sharing channel, sharing contents, operating system or APP etc. are not distinguished, sharing service is suitable for Then any operating environment is shared channel interface by docking inside sharing service and is shared, so, in application program When middle exploitation sharing function, it can complete to develop using the sharing request and preset sharing service of unified format.Specifically, When developing sharing function, it is only necessary to the format of sharing request, and preset sharing service are defined, without individually developing each point Channel is enjoyed, to simplify development process, improves the development efficiency of developer.
Meanwhile when developer needs to modify some and shares channel, such as the sharing canal that channel button indication will be shared Road with share form microblog picture be revised as by wechat good friend link, it is only necessary to the related ginseng of this layer of channel button is shared in modification Number, it is not necessary to modify next layer of contents;Correspondingly, the sharing parameter in sharing request accordingly changes, then leads to when sharing Cross the sharing channel interface for sharing service call microblog picture.Sharing channel interface in sharing service need to be preset in advance. So, the workload for greatly reducing developer, is greatly improved development efficiency.In addition, simultaneously, it is same by calling One sharing service carries out information sharing, and integration simplifies the process of information sharing.
In one embodiment, the form for sharing parameter can be form predetermined, and sharing parameter includes wait share Content identification and value and target share approach mark and value.Such as: sharing channel and sharing form is " wechat good friend's chain Connect ", target shares approach mark and value is respectively type and WXHYLJ, and that is to say " type=WXHYLJ ", wherein different value can By with it is any it is unique in the form of be indicated, such as AB, AC, AD respectively indicate different values, that is to say the sharing for indicating different Channel.For another example to sharing contents mark and value include: content sources mark source and value, content title mark title and Value, content address mark URL and value and/or shares description mark des and value etc., such as jump address mark and value be url with Https: //www.xxx.com, it that is to say " url=https: //www.xxx.com ", the value to sharing contents mark is practical The value of acquisition.In the present embodiment, generated in the sharing request of preset unified format according to parameter is shared, without specifying parameter Sequentially, the meaning indicated by identification (RNC-ID) analytic parameter.
In the present embodiment, sharing parameter can not also include mark, only include the value of mark, then is generated according to sharing parameter In the sharing request of preset unified format, need the sequence of specified parameter, and customized each parameter sequentially indicates Meaning.
Fig. 2 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
As shown in Fig. 2, above-mentioned steps 103 include step 201:
In step 201, by the sharing parameter according to the format of hypertext transfer protocol defined, and with character string Form generates the sharing request of preset unified format.
In this embodiment, sharing request using hypertext transfer protocol (HyperText Transfer Protocol, Http protocol) format request, share character string of the parameter as hypertext transfer protocol, such as: kdapp: //xxx.com/ Module=service&identifier=ShareService&param=encode " type ": " WXHYLJ ", " Source ": " H5GOODS ", " url ": " htttps: //xxx.xx.com " }, kdapp indicates the mark of application program, that is to say The domain name of the schema of http agreement, xxx.com expression server, the data that remaining string representation is sent, " type ": " WXHYLJ " is indicated to share channel and is shared form, such as is shared in the form of a link to wechat good friend, " source ": " H5GOODS " indicates content sources, such as from commodity page, " url ": " htttps: //xxx.xx.com " expression jumps ground Location.After sharing service receives the sharing request, the sharing parameter in sharing request is parsed, in sharing service such as above-described embodiment The process, by content to be shared with share channel interface and match, complete to share.In the present embodiment, sharing is asked Hypertext transfer protocol can be generated, pass through Hyper text transfer for hypertext transfer protocol under arbitrary operating environment by asking Agreement is sent to sharing service for parameter is shared, and further improves the versatility of information sharing method, in exploitation sharing function When, extend the usage scenario of information sharing method.
In one embodiment, when only including the value of mark as shared parameter, parameter is generated according to preset order of the field Hypertext transfer protocol, the meaning of the field of different location is also predefined in preset order of the field, different to distinguish Share parameter.
In one embodiment, when the content in the H5 page in APP is shared, user is obtained to sharing canal First trigger action of road button determines according to first trigger action and shares parameter;The sharing parameter includes wait share Content and target share approach;Approach will be shared according to the lattice of hypertext transfer protocol defined to sharing contents and target Formula, and in the form of character string, the sharing request of preset unified format is generated, and be sent to sharing service, is taken by sharing Business calls corresponding sharing channel interface to be shared.So, any one H5 page develops sharing function in APP When, it is translated without APP, by the sharing request and preset sharing service that generate hypertext transfer protocol format The exploitation for completing sharing function, simplifies development, reduces development cost.
Fig. 3 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
As shown in figure 3, above-mentioned steps 201 include step 301:
In step 301, in the sharing request further include: local service identification and sharing service mark;
By the local service identification, sharing service mark with the parameter of sharing according to hypertext transfer protocol defined Format generate the sharing request of preset unified format and in the form of character string.
In this embodiment, it can be found by local service identification with sharing service mark by sharing request and share clothes Business, to call sharing service, local service identification and sharing service mark can be fitted with rapid link to preset sharing service For easily calling sharing service under different operating environments, the versatility of information sharing method is further improved.
Fig. 4 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
As shown in figure 4, further including step 401 before above-mentioned steps 104:
In step 401, by the sharing service, share approach by described with target to sharing contents and be converted to difference The corresponding entity object of operating system.
In this embodiment, sharing parameter is switched to the entity pair of different operating system different language literary style by sharing service As the homomorphosis of entity object leads in order to be programmed with the language source code of different operating system to sharing service Crossing entity object easily can carry out subsequent further modification and maintenance to sharing service, such as increase in sharing service Preset target shares approach, is increased according to the rule of entity object, reduces the workload developed again.Its In, different operating system includes but is not limited to android or ios.
Fig. 5 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
As shown in figure 5, further including step 501-504 before above-mentioned steps 101:
In step 501, user is obtained to the second trigger action for sharing button;
In step 502, pattern is exported according to second trigger action and selects the page;
In step 503, the third trigger action for the pattern selection page is received;
In step 504, Show Styles is determined according to the third trigger action;
Above-mentioned steps 102 include step 505-506:
In step 505, it is determined according to first trigger action and Show Styles to sharing contents;
In step 506, determine that target shares approach according to the first trigger action.
In this embodiment, sharing button is the upper level button for sharing channel button, for example, clicking in display interface " sharing " printed words button shares icon, and " sharing " printed words button or sharing icon are to share button.It clicks and shares Pop-up is shared in pop-up after button, that is to say that pop-up is shared in pop-up after obtaining the second trigger action, shows multiple and different in pop-up Sharing channel button, meanwhile, with share gone back on the identical display layer of pop-up Show Styles selection the page, pattern select the page There are many pattern example, third trigger action is to click a certain pattern example, when choosing the pattern example, then it is assumed that is used for middle display Family is needed with the content after pattern example display sharing.In the present embodiment, when the content to be shared includes text, pattern Example includes different font etc.;When the content to be shared includes picture, the example of pattern includes different poster picture Pattern and/or picture mosaic pattern that pattern, picture are combined with two dimensional code etc..Certainly, the content to be shared in the present embodiment It can also include other content, pattern example also can also include other forms, herein with no restrictions.
In the present embodiment, Show Styles is determined according to the third trigger action, user is then obtained and is pressed to channel is shared First trigger action of button that is to say after receiving user to the first trigger action for sharing channel button, according to first touching Hair operation and Show Styles are determined to sharing contents, while determining that target shares approach.The content to be shared successfully shares it It is shown in the interface for sharing object afterwards, for example, the content to be shared in current APP of user gives wechat good friend, then The content to be shared is shown in the interface of some good friend after successfully sharing, and the sharing with Show Styles is shown Content.
In the present embodiment, Show Styles can will show different patterns after sharing contents are shared, to increase The dimension that information is shared makes information share diversification, and then meets the needs of different user, and the user experience is improved spends.
Fig. 6 is the flow chart for the method that a kind of information shown according to an exemplary embodiment is shared.
As shown in fig. 6, above-mentioned steps 102 include step 601-604:
In step 601, the target shares approach, comprising: level-one shares sub- approach and shares sub- approach with second level;
It is determined according to first trigger action to sharing contents;And
Determine that target shares approach according to first trigger action, it includes: that level-one shares son that the target, which shares approach, Approach;
In step 602, it obtains the level-one and shares the corresponding sharing list object of sub- approach;
In step 603, user is obtained to the 4th trigger action for sharing list object;
In step 604, according to the 4th trigger action, determine that target shares approach;The target shares approach also It include: that second level shares sub- approach.
In this embodiment, level-one shares sub- approach and shares sub- approach composition target sharing approach with second level, and level-one is shared Sub- approach distinguishes sharing channel and shares form, and second level shares sub- approach differentiation and shares object, to sharing channel subdivision.Share Object can be understood as sharing information recipient, usually with the related object of user that needs sharing information, such as user Wechat good friend, the good friend such as Taobao good friend in APP where QQ friends or sharing contents etc..Level-one shares point that sub- approach indicates It enjoys having in the target APP of channel and shares list object, obtaining the sharing list object can be by the sharing of invocation target APP List object, or it is previously stored with sharing list object, it is obtained by inquiry and shares list object.Sharing pair when the user clicks It when as certain an object in list, determines that second level shares sub- approach, then generates preset unified format according to sharing parameter Sharing request, and it is sent to sharing service, approach is shared according to level-one by sharing service and shares determining point jointly of approach with second level Channel interface is enjoyed, and calls and shares channel interface, is matched, will be passed to sharing contents with channel interface is shared to sharing contents Sharing channel interface is delivered to be shared.In the present embodiment, determine that second level shares sub- approach before calling sharing service, namely It is to determine to share object, is called by sharing service after sharing channel interface, directly share to sharing contents and extremely share object.One The corresponding second level of a sharing object shares sub- approach, and multiple sharing objects correspond to multiple second levels and share sub- approach, so, It can share to sharing contents to a sharing object or multiple sharing objects.
In the present embodiment, before generating sharing request, it will further share detailed channels, and improve information sharing method Versatility.
As shown in fig. 7, the present embodiment provides a kind of methods that information is shared, comprising:
Step 701, user is obtained to the second trigger action for sharing button;
Step 702, pattern is exported according to second trigger action and selects the page;
Step 703, the third trigger action for the pattern selection page is received;
Step 704, Show Styles is determined according to the third trigger action;
Step 705, user is obtained to the first trigger action for sharing channel button;
Step 706, it is determined according to first trigger action and Show Styles to sharing contents;
Step 707, determine that target shares approach according to first trigger action, it includes: one that the target, which shares approach, Grade shares sub- approach;
Step 708, it obtains the level-one and shares the corresponding sharing list object of sub- approach;
Step 709, user is obtained to the 4th trigger action for sharing list object;
Step 710, according to the 4th trigger action, determine that target shares approach;The target shares approach further include: Second level shares sub- approach;
Step 711, by the local service identification, sharing service mark, described share to sharing contents with the target Approach generates the sharing of preset unified format and in the form of character string according to the format of hypertext transfer protocol defined Request;The sharing parameter includes sharing approach to sharing contents and target;
Step 712, by the sharing service, share approach by described with target to sharing contents and be converted to different operation The corresponding entity object of system.
Step 713, by the sharing service, approach is shared according to the target and calls corresponding sharing channel interface;
Step 714, by the sharing service, by the sharing parameter and the corresponding sharing channel interface progress Match.
Wherein, the execution sequence of step 707- step 710 and step 706 can be exchanged mutually.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.
Fig. 8 is a kind of block diagram of information sharing apparatus shown according to an exemplary embodiment, which can be by soft Part, hardware or both are implemented in combination with as some or all of of electronic equipment.
As shown in figure 8, the information sharing apparatus includes: the first acquisition module 801, the first determining module 802, generation module 803 and sharing service module 804.
First obtains module 801, for obtaining user to the first trigger action for sharing channel button;
First determining module 802 shares parameter for determining according to first trigger action;The sharing parameter includes Share approach to sharing contents and target;
Generation module 803 for generating the sharing request of preset unified format according to the sharing parameter, and is sent to Sharing service;
Sharing service module 804 calls corresponding sharing channel interface for sharing approach according to the target;
The sharing parameter is matched with the corresponding sharing channel interface.
Fig. 9 is a kind of block diagram of information sharing apparatus shown according to an exemplary embodiment.
As shown in figure 9, the generation module 803, comprising:
Submodule 901 is generated, for the format by the sharing parameter according to hypertext transfer protocol defined, and with word The form of string is accorded with, the sharing request of preset unified format is generated.
In one embodiment, in the sharing request further include: local service identification and sharing service mark;
The generation submodule 901 is also used to the local service identification, sharing service mark sharing parameter with described According to the format of hypertext transfer protocol defined, and in the form of character string, the sharing request of preset unified format is generated.
In one embodiment, the sharing service module 804 is also used to share described to sharing contents with target way Diameter is converted to the corresponding entity object of different operating system.
Figure 10 is a kind of block diagram of information sharing apparatus shown according to an exemplary embodiment.
As shown in Figure 10, described device further include:
Second obtains module 1001, for obtaining user to the second trigger action for sharing button;
Output module 1002 selects the page for exporting pattern according to second trigger action;
Receiving module 1003, for receiving the third trigger action for being directed to the pattern selection page;
Second determining module 1004, for determining Show Styles according to the third trigger action;
First determining module 802, comprising:
First determines submodule 1005, for being determined with Show Styles wait in sharing according to first trigger action Hold;
Second determines submodule 1006, for determining that target shares approach according to first trigger action.
Figure 11 is a kind of block diagram of information sharing apparatus shown according to an exemplary embodiment.
As shown in figure 11, the target shares approach, comprising: level-one shares sub- approach and shares sub- approach with second level;It is described First determining module 802, comprising: third determines submodule 1101, the first acquisition submodule 1102, the second acquisition submodule 1103 Submodule 1104 is determined with the 4th.
Third determines submodule 1101, for being determined according to first trigger action to sharing contents, and according to institute It states the first trigger action and determines that target shares approach, it includes: that level-one shares sub- approach that the target, which shares approach,;
First acquisition submodule 1102 shares the corresponding sharing list object of sub- approach for obtaining the level-one;
Second acquisition submodule 1103, for obtaining user to the 4th trigger action for sharing list object;
4th determines submodule 1104, for determining that target shares approach according to the 4th trigger action;The target Sharing approach further include: second level shares sub- approach.
According to a third aspect of the embodiments of the present invention, a kind of information sharing apparatus is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
User is obtained to the first trigger action for sharing channel button;
It is determined according to first trigger action and shares parameter;The sharing parameter includes to sharing contents and target point Enjoy approach;
The sharing request of preset unified format is generated according to the sharing parameter, and is sent to sharing service;
By the sharing service, approach is shared according to the target and calls corresponding sharing channel interface;
By the sharing service, the sharing parameter is matched with the corresponding sharing channel interface.
Above-mentioned processor is also configured to:
The sharing request that preset unified format is generated according to the sharing parameter, comprising:
By the sharing parameter according to the format of hypertext transfer protocol defined, and in the form of character string, generate pre- If unified format sharing request.
Above-mentioned processor is also configured to:
In the sharing request further include: local service identification and sharing service mark;
By the local service identification, sharing service mark with the parameter of sharing according to hypertext transfer protocol defined Format generate the sharing request of preset unified format and in the form of character string.
Above-mentioned processor is also configured to:
It is described to be shared before approach calls corresponding sharing channel interface according to the target by the sharing service, The method also includes:
By the sharing service, shares to sharing contents approach with target by described to be converted to different operating system corresponding Entity object.
Above-mentioned processor is also configured to:
User is obtained to the second trigger action for sharing button;
Pattern, which is exported, according to second trigger action selects the page;
Receive the third trigger action for the pattern selection page;
Show Styles is determined according to the third trigger action;
Described determined according to first trigger action shares parameter, comprising:
It is determined according to first trigger action and Show Styles to sharing contents;
Determine that target shares approach according to first trigger action.
Above-mentioned processor is also configured to:
Described determined according to first trigger action shares parameter, and the sharing parameter includes to sharing contents and mesh Mark sharing approach, comprising:
The target shares approach, comprising: level-one shares sub- approach and shares sub- approach with second level;
It is determined according to first trigger action to sharing contents;And
Determine that target shares approach according to first trigger action, it includes: that level-one shares son that the target, which shares approach, Approach;
It obtains the level-one and shares the corresponding sharing list object of sub- approach;
User is obtained to the 4th trigger action for sharing list object;
According to the 4th trigger action, determine that target shares approach;The target shares approach further include: second level is shared Sub- approach.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
A kind of computer readable storage medium makes when the instruction in the storage medium is executed by the processor of device Obtain the method that device is able to carry out above- mentioned information sharing, which comprises
User is obtained to the first trigger action for sharing channel button;
It is determined according to first trigger action and shares parameter;The sharing parameter includes to sharing contents and target point Enjoy approach;
The sharing request of preset unified format is generated according to the sharing parameter, and is sent to sharing service;
By the sharing service, approach is shared according to the target and calls corresponding sharing channel interface;
By the sharing service, the sharing parameter is matched with the corresponding sharing channel interface.
In one embodiment, the sharing request that preset unified format is generated according to the sharing parameter, comprising:
By the sharing parameter according to the format of hypertext transfer protocol defined, and in the form of character string, generate pre- If unified format sharing request.
In one embodiment, in the sharing request further include: local service identification and sharing service mark;
By the local service identification, sharing service mark with the parameter of sharing according to hypertext transfer protocol defined Format generate the sharing request of preset unified format and in the form of character string.
In one embodiment, described by the sharing service, approach is shared according to the target and calls corresponding point Before enjoying channel interface, the method also includes:
By the sharing service, shares to sharing contents approach with target by described to be converted to different operating system corresponding Entity object.
In one embodiment, the method also includes:
User is obtained to the second trigger action for sharing button;
Pattern, which is exported, according to second trigger action selects the page;
Receive the third trigger action for the pattern selection page;
Show Styles is determined according to the third trigger action;
Described determined according to first trigger action shares parameter, comprising:
It is determined according to first trigger action and Show Styles to sharing contents;
Determine that target shares approach according to first trigger action.
In one embodiment, described determined according to first trigger action shares parameter, and the sharing parameter includes Share approach to sharing contents and target, comprising:
The target shares approach, comprising: level-one shares sub- approach and shares sub- approach with second level;
It is determined according to first trigger action to sharing contents;And
Determine that target shares approach according to first trigger action, it includes: that level-one shares son that the target, which shares approach, Approach;
It obtains the level-one and shares the corresponding sharing list object of sub- approach;
User is obtained to the 4th trigger action for sharing list object;
According to the 4th trigger action, determine that target shares approach;The target shares approach further include: second level is shared Sub- approach.
Those skilled in the art are considering specification and after practicing disclosure disclosed herein, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of method that information is shared characterized by comprising
User is obtained to the first trigger action for sharing channel button;
It is determined according to first trigger action and shares parameter;The sharing parameter includes sharing way to sharing contents and target Diameter;
The sharing request of preset unified format is generated according to the sharing parameter, and is sent to sharing service;
By the sharing service, approach is shared according to the target and calls corresponding sharing channel interface;
By the sharing service, the sharing parameter is matched with the corresponding sharing channel interface.
2. the method as described in claim 1, which is characterized in that described to generate preset unified format according to the sharing parameter Sharing request, comprising:
By the sharing parameter according to the format of hypertext transfer protocol defined, and in the form of character string, generate preset The sharing request of unified format.
3. method according to claim 2, which is characterized in that in the sharing request further include: local service identification and point Enjoy service identifiers;
By the local service identification, sharing service mark with the parameter of sharing according to the lattice of hypertext transfer protocol defined Formula, and in the form of character string, generate the sharing request of preset unified format.
4. the method as described in claim 1, which is characterized in that it is described by the sharing service, shared according to the target Before approach calls corresponding sharing channel interface, the method also includes:
By the sharing service, shares approach with target by described to sharing contents and be converted to the corresponding reality of different operating system Body object.
5. the method as described in claim 1, which is characterized in that the method also includes:
User is obtained to the second trigger action for sharing button;
Pattern, which is exported, according to second trigger action selects the page;
Receive the third trigger action for the pattern selection page;
Show Styles is determined according to the third trigger action;
Described determined according to first trigger action shares parameter, comprising:
It is determined according to first trigger action and Show Styles to sharing contents;
Determine that target shares approach according to first trigger action.
6. a kind of information sharing apparatus characterized by comprising
First obtains module, for obtaining user to the first trigger action for sharing channel button;
First determining module shares parameter for determining according to first trigger action;The sharing parameter includes wait share Content and target share approach;
Generation module for generating the sharing request of preset unified format according to the sharing parameter, and is sent to sharing clothes Business;
Sharing service module calls corresponding sharing channel interface for sharing approach according to the target;
The sharing parameter is matched with the corresponding sharing channel interface.
7. device as claimed in claim 6, which is characterized in that the generation module, comprising:
Submodule is generated, for the format by the sharing parameter according to hypertext transfer protocol defined, and with character string Form generates the sharing request of preset unified format.
8. device as claimed in claim 7, which is characterized in that in the sharing request further include: local service identification and point Enjoy service identifiers;
The generation submodule is also used to the local service identification, sharing service mark and the parameter of sharing according to super The format of text transfer protocol defined, and in the form of character string, generate the sharing request of preset unified format.
9. device as claimed in claim 6, which is characterized in that the sharing service module is also used to described wait in sharing Appearance shares approach with target and is converted to the corresponding entity object of different operating system.
10. device as claimed in claim 6, which is characterized in that further include:
Second obtains module, for obtaining user to the second trigger action for sharing button;
Output module selects the page for exporting pattern according to second trigger action;
Receiving module, for receiving the third trigger action for being directed to the pattern selection page;
Second determining module, for determining Show Styles according to the third trigger action;
First determining module, comprising:
First determines submodule, for being determined according to first trigger action and Show Styles to sharing contents;
Second determines submodule, for determining that target shares approach according to first trigger action.
CN201910656903.8A 2019-07-19 2019-07-19 A kind of method and device that information is shared Pending CN110442285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910656903.8A CN110442285A (en) 2019-07-19 2019-07-19 A kind of method and device that information is shared

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910656903.8A CN110442285A (en) 2019-07-19 2019-07-19 A kind of method and device that information is shared

Publications (1)

Publication Number Publication Date
CN110442285A true CN110442285A (en) 2019-11-12

Family

ID=68430969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910656903.8A Pending CN110442285A (en) 2019-07-19 2019-07-19 A kind of method and device that information is shared

Country Status (1)

Country Link
CN (1) CN110442285A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143005A (en) * 2019-12-25 2020-05-12 维沃移动通信有限公司 Application sharing method, electronic equipment and computer readable storage medium
CN111355654A (en) * 2020-02-18 2020-06-30 支付宝实验室(新加坡)有限公司 Target content sharing method, device and equipment
CN112069427A (en) * 2020-09-09 2020-12-11 北京达佳互联信息技术有限公司 Resource bit link generation method, device, equipment and storage medium
CN112801704A (en) * 2021-02-03 2021-05-14 北京字节跳动网络技术有限公司 Virtual object allocation method, device, equipment, medium and program product
CN113076294A (en) * 2021-04-16 2021-07-06 北京沃东天骏信息技术有限公司 Information sharing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982144A (en) * 2012-11-22 2013-03-20 东莞宇龙通信科技有限公司 Method and system for sharing webpage information
CN103049477A (en) * 2012-11-19 2013-04-17 腾讯科技(深圳)有限公司 Method and system for sharing streetscape views to social network site
CN104486430A (en) * 2014-12-18 2015-04-01 北京奇虎科技有限公司 Method, device and client for realizing data sharing in mobile browser client
CN106484830A (en) * 2016-09-29 2017-03-08 北京百度网讯科技有限公司 Position sharing method, device and system
CN107369195A (en) * 2017-06-16 2017-11-21 珠海金山网络游戏科技有限公司 It is a kind of to realize 3D game racquets according to the method, apparatus and system shared
US20180300187A1 (en) * 2015-05-27 2018-10-18 Google Llc Dynamic deep links to targets

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049477A (en) * 2012-11-19 2013-04-17 腾讯科技(深圳)有限公司 Method and system for sharing streetscape views to social network site
CN102982144A (en) * 2012-11-22 2013-03-20 东莞宇龙通信科技有限公司 Method and system for sharing webpage information
CN104486430A (en) * 2014-12-18 2015-04-01 北京奇虎科技有限公司 Method, device and client for realizing data sharing in mobile browser client
US20180300187A1 (en) * 2015-05-27 2018-10-18 Google Llc Dynamic deep links to targets
CN106484830A (en) * 2016-09-29 2017-03-08 北京百度网讯科技有限公司 Position sharing method, device and system
CN107369195A (en) * 2017-06-16 2017-11-21 珠海金山网络游戏科技有限公司 It is a kind of to realize 3D game racquets according to the method, apparatus and system shared

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143005A (en) * 2019-12-25 2020-05-12 维沃移动通信有限公司 Application sharing method, electronic equipment and computer readable storage medium
CN111355654A (en) * 2020-02-18 2020-06-30 支付宝实验室(新加坡)有限公司 Target content sharing method, device and equipment
CN112069427A (en) * 2020-09-09 2020-12-11 北京达佳互联信息技术有限公司 Resource bit link generation method, device, equipment and storage medium
CN112069427B (en) * 2020-09-09 2023-10-13 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for generating resource bit links
CN112801704A (en) * 2021-02-03 2021-05-14 北京字节跳动网络技术有限公司 Virtual object allocation method, device, equipment, medium and program product
CN113076294A (en) * 2021-04-16 2021-07-06 北京沃东天骏信息技术有限公司 Information sharing method and device

Similar Documents

Publication Publication Date Title
CN110442285A (en) A kind of method and device that information is shared
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
CN110727431A (en) Applet generation method and apparatus
CA2915619C (en) Method and apparatus for customized software development kit (sdk) generation
KR101547194B1 (en) Method and application for managing cookie-information
CN105027121B (en) The five application page of the machine application is indexed
US20160188448A1 (en) Discovery of application states
CN109194714B (en) File pushing method and device, terminal device and storage medium
WO2014134189A1 (en) Sharing application states
CN105931107A (en) Sharing method and apparatus
CN106462406A (en) Interactive viewer of intermediate representations of client side code
CN110166499A (en) A kind of method and server obtaining user's representation data
CN109829123A (en) A kind of method for sending information and device
CN107852422A (en) Connected from the server interface with different API to obtain ad data
CN104239454A (en) Searching method and device
CN109947425A (en) A kind of the dealing with information flow method and device
CN114253436B (en) Page display method, device and storage medium
CN112486673B (en) Resource binding method and device
CN113656719B (en) Data rendering method, system, electronic device and storage medium
CN105988992A (en) Icon pushing method and device
CN103761024A (en) Interface display method, device, terminal, server and system
JP2021096862A (en) Server and terminal
CN111767447A (en) Method and device for determining user traffic path
Karayiannis Web-Based Projects that Rock the Class: Build Fully-Functional Web Apps and Learn Through Doing
CN110263058B (en) Data processing method and device and electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191112

RJ01 Rejection of invention patent application after publication