CN102938763A - Application access system and method of network application access network operating platform - Google Patents
Application access system and method of network application access network operating platform Download PDFInfo
- Publication number
- CN102938763A CN102938763A CN2012104480282A CN201210448028A CN102938763A CN 102938763 A CN102938763 A CN 102938763A CN 2012104480282 A CN2012104480282 A CN 2012104480282A CN 201210448028 A CN201210448028 A CN 201210448028A CN 102938763 A CN102938763 A CN 102938763A
- Authority
- CN
- China
- Prior art keywords
- api
- network application
- operation platform
- described network
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses an application access system and method of a network application access network operating platform. The application access system comprises the network operating platform and network application, the network operating platform is suitable for receiving application program interface (API) parameters sent by the network application; the API parameters are used for generating API definition suitable for the network application according to the predetermined API generation standard; the network application is provided with the API, the API is formed by the API definition generated on the basis of the network operating platform, and the API definition is suitable for the network application; and the network operating platform accesses the network application through the API of the network application. The application access system and method solves the problem that errors occur easily when the API is generated through network application in the prior art. Accurate API generated by the network operating platform can be supplied to the network application, and network application access error caused by API error can be avoided effectively.
Description
Technical field
The present invention relates to the communications field, be specifically related to a kind of application connecting system with network application access network operation platform and corresponding method.
Background technology
Along with the fast development of network, a lot of based on network application have appearred.These network applications comprise Online Video, online friend-making and online game etc.
Take online game as example, because online game can be distributed in various places and together cooperation so that participate in the people of game, increased the function that conventional local area game and single-play game are not had, therefore just day by day be subject to the network user's welcome.Online game further comprises again web game.In the web game field, divide the work day by day obviously, some companies are responsible for developing web game, and some companies are responsible for runing web game.The web game operator is as the network operation platform, generally together with the time run many moneys game of a plurality of companies exploitation.Because the game of different company's exploitation is responsible for by different technical teams, even the technical team between many money game of same company exploitation also can be different, therefore, how every money of each company's exploitation being played reliably easy and is linked into rapidly on the network operation platform is a problem demanding prompt solution.
At present, for the game with each company's exploitation is linked on the network operation platform, general way is to provide some technical specifications by the network operation platform, requires the company of game development to generate the API that is used for game is linked into the network operation platform according to these technical specifications.But, adopt this mode, company by game development generates in the process of API, owing to technical specification that the network operation platform is provided is understood insufficient or the reason such as technical merit is limited, it is wrong probably causing the API that generates, will certainly be full of mistakes during with the API access network operation platform of mistake, follow-uply need to make amendment repeatedly, test, the company of game development and network operation platform both sides will waste a large amount of time thus.
Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of application connecting system with network application access network operation platform and corresponding method are provided.
According to one aspect of the present invention, a kind of application connecting system is provided, comprising: network operation platform and network application, wherein the network operation platform is suitable for receiving the application programming interfaces API parameter that network application transmits; Generate standard according to predetermined API, use the generation of API parameter to be applicable to the API definition of this network application; Network application has API, and this API is based on the API definition that is applicable to this network application that the network operation platform generates and constructs and form; Wherein, the network operation platform visits described network application by the API of described network application.
According to another aspect of the present invention, a kind of application cut-in method with network application access network operation platform is provided, comprise step: the network operation platform receives the application programming interfaces API parameter that network application transmits; The network operation platform generates standard according to predetermined API, uses the generation of API parameter to be applicable to the API definition of this network application; And the API that is applicable to this network application that network application operation platform Network Based is generated defines to construct self API, and the network operation platform visits described network application by self API of network application structure.
According to the application connecting system with network application access network operation platform of the present invention and corresponding method, preset API by the network operation platform and generate standard, and when receiving the API parameter that network application transmits, generate the API definition of this network application according to API generation standard, therefore, network application need not oneself to generate the API definition, the API that only needs to define to construct according to the API that the network operation platform generates self gets final product, solved thus in the prior art problem of makeing mistakes easily when generating API by network application itself, obtained and to have produced accurately API definition and to offer network application by the network operation platform, thereby effectively avoided causing the wrong beneficial effect of network application access because of the API mistake.
Above-mentioned explanation only is the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of drawings
By reading hereinafter detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing only is used for the purpose of preferred implementation is shown, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts with identical Reference numeral.In the accompanying drawings:
Fig. 1 shows according to an embodiment of the invention the structure chart with the application connecting system of network application access network operation platform;
Display interface schematic diagram when Fig. 2 shows the API parameter that input is associated with network application in one embodiment of the invention;
Fig. 3 shows the display interface schematic diagram of having inputted fully after the API parameter that is associated with network application in one embodiment of the invention;
Fig. 4 shows in one embodiment of the invention after having inputted the API parameter that is associated with network application fully, the display interface schematic diagram after further by the network operation platform API of network application being verified;
Fig. 5 shows in one embodiment of the invention, and the system manager inputs the display interface schematic diagram after the first checking instruction;
Fig. 6 shows in one embodiment of the invention, and the system manager inputs the display interface schematic diagram after the second checking instruction;
Fig. 7 shows in one embodiment of the invention, and the system manager inputs the display interface schematic diagram after the third checking instruction; And
Fig. 8 shows according to an embodiment of the invention the flow chart with the application cut-in method of network application access network operation platform.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
The structure chart of Fig. 1 shows that the embodiment of the invention provides a kind of application connecting system with network application access network operation platform.
As shown in Figure 1, this application connecting system comprises network operation platform 110 and one or more network application 120.
Network operation platform 110 receives the API parameter that is associated with network application 120, generate standard according to predetermined API, use this API parameter, generate the API definition that is applicable to this network application 120, and the API definition that is applicable to this network application 120 that will generate sends to this network application 120.
This network application 120 defines to construct the API of this network application 120 based on this API after receiving the API definition that is applicable to this network application 120 that network operation platform 110 sends.The implication that the API that network application 120 operation platforms 110 Network Based are sent defines to construct the API of this network application 120 refers to: network application 120 structures define corresponding network application function with the API that is applicable to this network application 120 that network operation platform 110 is sent, so that the API of network operation platform 110 by network application 120 visits the function that this network application 120 provides.
That is to say, when network operation platform 110 according to the API parameter relevant with network application 120, and predetermined API generation standard generates after the API definition on the operation platform 110 Network Based, this API definition is the URL chained address with predefined parameter just, but this URL chained address can't automatically associate with network application 120.So these URL addresses of at this moment network operation platform 110 access are to obtain function that network application 120 provides.Therefore, network operation platform 110 needs this API definition is sent to network application 120, by the network application 120 structures API corresponding with this API definition, the network application function that network application is had is associated with API, so that network operation platform 110 just can reach the purpose of the correlation function of accesses network application 120 by accessing this API.
The below describes the specific works example of this application connecting system in detail according to one embodiment of present invention.
Need to pre-set in advance API on the network operation platform 110 and generate standard, this API has generated standard predefine and has generated the create-rule that API defines according to the API parameter.
Then, network operation platform 110 receives the API parameter that is associated with network application 120, and this API parameter can comprise one or more in the following content: the interface type of API, district take information, user account number, encryption key and Apply Names and abridge.To the display interface of network operation platform 110 input during with API parameter that network application 120 is associated as shown in Figure 2.As can see from Figure 2, the interface type that comprises API in the API parameter of inputting with network application 120 is associated.In interface type, except login interface shown in Figure 2, can also be to supplement interface, query interface etc. with money.The API parameter can also comprise Game Zone clothes (taking such as S1 district) in addition, and user qid(is user account number, is 116369412 among Fig. 2).In addition, comprise also in the API parameter of network application 120 input that to encrypt key(be encryption key), game abbreviation (such as the sxd that is abbreviated as of angle road game) and interface IP address.In above-mentioned input message, interface type, Game Zone clothes, user account number, game abbreviation etc. all are to select according to the characteristic of network application self, and for example, game is as example take network application as the angle road, and its game abbreviation can be sxd.In addition, the value in the encryption key is to make an appointment between network application 120 and the network operation platform 110, and interface IP address can be the URL address that network application 120 receives 110 access of network operation platform.
After the value of having inputted above-mentioned API parameter, to click " checking " and will generate the API definition that is applicable to this network application 120, this is as shown in Figure 3.According to one embodiment of present invention, after network operation platform 110 receives every API parameter of inputting among Fig. 2, can be according to default cryptographic algorithm, based on default encryption key each API parameter is encrypted, obtain ciphering sequence, and generate the API definition according to this ciphering sequence.Therefore, when the interface type that comprises API in the API parameter, when the district takes information, user account number, encryption key and Apply Names and abridges these several information, can comprise in the API of the generation definition: the interface type of API, district take information, user account number, ciphering sequence and Apply Names abbreviation.Particularly, take Fig. 2 and Fig. 3 as example, the encryption key that comprises in the API parameter is 123456, supposes that default cryptographic algorithm is the md5 algorithm, then can generate the API definition by following code:
In above-mentioned code, adopt default cryptographic algorithm, such as the md5 algorithm, default parameter is encrypted, obtain ciphering sequence sign.Wherein, the parameter of using in the md5 algorithm comprises " qid " (being the user account number in the API parameter), " time " (system time when namely inputting the API parameter), " server_id " (inputting the server address of API parameter) and " key " (encryption key in the API parameter).Therefore, ciphering sequence sign is by the md5 algorithm, with " key " as encryption key, " qid " in the above-mentioned parameter, " server_id ", " time " are obtained after being encrypted, because the system time when having comprised input API parameter in the above-mentioned parameter, and system time with the time of each input API parameter difference, so, the ciphering sequence sign that at every turn obtains is different, and this has improved fail safe.Obtain to generate url according to ciphering sequence after the ciphering sequence sign, can comprise " qid ", " server_id ", " time " parameter and ciphering sequence sign obtained above among this url.Network operation platform 110 sends to network application 120 with this url as the API definition that is applicable to this network application 120.Network application 120 receive after this API display interface as shown in Figure 3, can find out that demonstrated the API definition that is generated by network operation platform 110 in the below of " checking " button of Fig. 3, this API definition is a url address with predefined parameter.
The API that network application 120 receives among Fig. 3 defines (URL that namely comprises parameter) afterwards, in order to ensure perfectly safe, preventing that API that network operation platform 110 generates is defined in the communication process is tampered, and the API definition that can also further generate network operation platform 110 be verified.When checking, network application 120 can be encrypted calculating based on default encryption key to the API parameter in the API definition according to default cryptographic algorithm, obtains ciphering sequence; Judge whether the ciphering sequence calculate is identical with ciphering sequence in the received API definition, if identical, illustrate that the API definition is not tampered, correct, thereby the network application 120 structures API corresponding with this API definition, and corresponding network application function is associated with this API, in order to allow network operation platform 110 by the function of this network application 120 of this API Calls; Otherwise, illustrate that the API definition has been tampered, be wrong, thereby network application 120 does not generate the API corresponding with this API definition.Still the cipher mode in the above-mentioned code comprises " qid ", " server_id ", " time " parameter and ciphering sequence sign as example in the API definition that network application 120 receives.Therefore, network application 120 directly utilizes the md5 algorithm, the encryption key of inputting in the interface of Fig. 2 before adopting is encrypted " qid ", " server_id ", " time " parameter that comprises in the API definition, obtain encrypted result, when the sign value that comprises in this encrypted result and the API definition equates, illustrate that the API definition is correct, when the sign value that comprises in this encrypted result and the API definition is unequal, illustrate that the API definition is wrong.
By top mode, can be verified by 120 pairs of ciphering sequences of network application, be tampered to prevent the API definition, and then guarantee the API correctness in definition.Except this mode of being verified by network application 120, can also be verified by the API definition of 110 pairs of generations of network operation platform, to guarantee its correctness.
Above-mentioned interface shown in Figure 3 not only may be displayed on the corresponding client of the keeper place of network application 120, can also be simultaneously displayed on the corresponding client of the keeper place of network operation platform 110.Therefore, network operation platform 110 can also be at the parameter value of the API parameter that receives network application, and go out after the API definition according to parameter value calculation, further present the API definition of this network application, and/or verify that this API definition is whether correct and show the result.Particularly, 110 pairs of API definition of network operation platform can be undertaken by following dual mode when verifying:
In the first verification mode, network operation platform 110 sends access request by the API of network application 120 to network application 120, verify according to the response message that network application 120 is returned whether the API of network application 120 is correct, and the result is offered network application 120.Particularly, network operation platform 110 generates the API definition, and network application 120 is namely constructed and the corresponding network application function of this API according to the API of these API constructing definitions self.Subsequently, network operation platform 110 is further used for sending access request by this API to network application 120, if this API is correct and the network application function corresponding with this API successfully constructed in network application 120, then network application 120 will receive the access request that network operation platform 110 sends by this API, then, return response message according to this access request to network operation platform 110, this response message can be realized by the Return function in the above-mentioned code segment.If network operation platform 110 has received the response message that network application 120 is returned, illustrate that then this API can normally use, therefore, return the result of " success " to network application 120, this is as shown in Figure 4.If network operation platform 110 does not receive the response message that network application 120 is returned, illustrate that then this API also can't normally use, therefore, return the result of " failure " to network application 120.
In above-mentioned the first verification mode, it is the correctness of directly after generating the API definition, automatically being verified API by network operation platform 110.In the second verification mode, the opportunity of checking is different from first kind of way, be not once fix on generate the API definition after immediately to 120 requests verification of network application, but whenever can verify in follow-up running.And, the concrete operation method of the second verification mode is also different from first kind of way, first kind of way is by predefined flow process, after generating the API definition automatically according to flow process to 120 requests verification of network application, and the second way be by the administrative staff of network operation platform 110 when the needs checking API, input on one's own initiative some instructions, network operation platform 110 is processed the instruction of administrative staff's input according to predefined program, and obtains result.
For example, when adopting the second verification mode, administrative staff input " XXX.html gkey=sxd " in the instruction input frame.Gkey in this instruction represents the game abbreviation, and sxd represents the abbreviation of " angle road " game.Administrative staff input after this instruction, on network operation platform 110, then can demonstrate the API that all-network related in " angle road " game is used, for example, comprise API corresponding to " login interface ", the API that " activation interface " is corresponding, API of " exchanging the ingot interface " correspondence, and the API of " supplementing query interface with money " correspondence etc., as shown in Figure 5.Adopt this instruction meeting that the concrete url address of the API of each network application is shown, check or access for administrative staff.In addition, if administrative staff input " XXX.html gkey=sxd﹠amp in the instruction input frame; Pay=1 "; owing to increased the parameter of " pay=1 " than the instruction of introducing above; therefore; except showing " login interface ", " activation interface ", " exchanging the ingot interface "; and outside the API of " supplementing query interface with money " correspondence; go back API of further access " activation interface " and " exchanging the ingot interface " correspondence, verify according to return results whether API corresponding to " activation interface " and " exchanging the ingot interface " be correct, and the result (such as " success " or " failure ") is presented at the back of corresponding A PI, this is as shown in Figure 6.Further, if administrative staff input " XXX.html gkey=sxd﹠amp in the instruction input frame; Pay=1﹠amp; New=1 "; owing to further increased the parameter of " new=1 " than the instruction of introducing above; therefore; except demonstration " login interface ", " activation interface ", " exchanging the ingot interface "; and API corresponding to " supplementing query interface with money "; and further access API corresponding to " activation interface " and " exchanging the ingot interface ", outside verifying that according to return results API corresponding to " activation interface " and " exchange for ingot interface " be whether correct, also can verify for " supplementing query interface with money ", and will supplement Query Result with money and directly show, as shown in Figure 7.In Fig. 6 and Fig. 7, control the detailed process that the API of docking port whether verifies by pay, new parameter and can realize by following code:
Value according to pay, new parameter can determine whether API is verified.
In the second verification mode, in order to obtain API corresponding to each interface, a GameDock class can be set in program, in this class, be function of the corresponding definition of each interface, for example, the getLoginUrl function is used for obtaining the API of " login interface ", the getPayDetailUrl function is used for obtaining API corresponding to " supplementing query interface with money ", can realize by following code segment during specific implementation:
By top mode, can verify the correctness of API, pass through correctly access network operation platform of corresponding API to guarantee network application.Wherein, the first verification mode is verified in time and be need not administrative staff and carry out extra operation again, so verification mode is simple and easy to do owing to directly verify after API generates.The second verification mode is by the default instruction of input, can verify a plurality of API simultaneously according to instruction, finish one by one the mode of checking compared with each API of artificial traversal commonly used in the prior art and compare, greatly improved verification efficiency, can finish simultaneously the checking of a plurality of API.This shows that above-mentioned two kinds of verification modes of network operation platform 110 respectively have its advantage, according to actual needs which kind of verification mode of choice for use.
By application connecting system provided by the invention, generate standard owing to set in advance API on the network operation platform, therefore, can after receiving the API parameter, generate the API definition according to API generation standard by the network operation platform, and remove to realize the API corresponding with the API definition by network application, write the API definition and need not network application according to technical specification, thereby both simplified the work of network application, improve the formation speed of API, also avoided network application in compiling procedure, not cause the possibility of makeing mistakes because understanding technical specification.In addition, application connecting system provided by the invention also provides double verification mechanism, and on the one hand, network application can be verified according to cryptographic algorithm after receiving the API definition, avoid thus the problem of makeing mistakes in the Internet Transmission; On the other hand, the network operation platform can also adopt dual mode that API is verified, has further guaranteed the correctness of API, and, because the network operation platform can be carried out proof procedure, the problem of inefficiency when having avoided thus artificial checking by default program.
Application connecting system in the embodiment of the invention can be used for accessing multiple application, except above-described online game, can also access other network application, for example, and Internet chat, internet dating etc.
The flow chart of Fig. 8 shows that the embodiment of the invention provides a kind of application cut-in method with network application access network operation platform.
As shown in Figure 8, this application cut-in method starts from step S810, and in step S810, the network operation platform receives the API parameter that is associated with network application.
This API parameter can comprise one or more in the following content: the interface type of API, district take information, user account number, encryption key and Apply Names abbreviation.Display interface when inputting the API parameter that is associated with network application can be with reference to Fig. 2.As can see from Figure 2, the API parameter that is associated with network application of inputting comprises the interface type of API.Interface type can also be to supplement interface, query interface etc. with money except login interface shown in Figure 2.The API parameter also comprises Game Zone clothes (such as S1 district clothes) and user qid(is user account number, is 116369412 among Fig. 2).In addition, comprise also in the API parameter that to encrypt key(be encryption key), game abbreviation (such as the sxd that is abbreviated as of angle road game) and interface IP address.In above-mentioned input message, interface type, Game Zone clothes, user account number, game abbreviation etc. all are to select according to the characteristic of network application self, and for example, game is as example take network application as the angle road, and its game abbreviation can be sxd.In addition, the value in the encryption key is to make an appointment between network application and the network operation platform, and interface IP address can be the URL address that network application receives the network operation platform access.
After receiving the API parameter that is associated with network application by step S810, in step S820, the network operation platform generates standard according to predetermined API, use this API parameter, generation is applicable to the API definition of this network application, and the API that network application operation platform Network Based is generated defines to construct the API of self.
After the network operation platform receives every API parameter of above-mentioned input, can be according to default cryptographic algorithm, based on default encryption key each API parameter is encrypted, obtain ciphering sequence, generate the API definition according to this ciphering sequence.Therefore, when the interface type that comprises API in the API parameter, when the district takes information, user account number, encryption key and Apply Names and abridges these several information, can comprise in the API of the generation definition: the interface type of API, district take information, user account number, ciphering sequence and Apply Names abbreviation.Particularly, but the description of appropriate section among the generating mode reference method embodiment of API definition repeats no more herein.The API definition that generates is a url with predefined parameter, and the network operation platform sends to network application with this url as the API definition that is applicable to this network application.
Network application receives after the API definition that the network operation platform sends, and in order to ensure perfectly safe, prevents from that API that the network operation platform generates is defined in the communication process to be tampered that the API definition that can also further generate the network operation platform be verified.During concrete checking, network application can be according to default cryptographic algorithm, based on default encryption key the API parameter of its transmission is encrypted calculating, obtains ciphering sequence; Judge whether the ciphering sequence calculate is identical with ciphering sequence in the received API definition, if identical, illustrate that the API definition is not tampered, correct, thereby this API of sending of this network application operation platform Network Based defines API(that tectonic network uses self namely: construct the network application function corresponding with this API), thus permission network operation platform passes through the function of this this network application of API Calls; Otherwise, illustrate that the API definition has been tampered, and is wrong, thereby refuses to construct corresponding API.
In addition, the network operation platform can also be at the parameter value according to the API parameter of the network application that receives, and go out after the API definition according to parameter value calculation, further present the API definition of this network application, and/or verify that this API definition is whether correct and show the result.
And, except by network application ciphering sequence being verified, be tampered to prevent the API definition, and then guarantee outside the API correctness in definition, can also be verified the API definition that generates by the network operation platform, to guarantee its correctness.Particularly, the network operation platform defines API and can be undertaken by following dual mode when verifying:
In the first verification mode, the network operation platform sends access request by the API of network application to network application, verifies according to the response message that network application is returned whether the API of network application is correct, and the result is offered network application.Particularly, the network operation platform generates the API definition, and network application is namely constructed and the corresponding network application function of this API according to the API of these API constructing definitions self.Subsequently, the network operation platform is further used for sending access request by this API to network application, if this API is correct and the network application function corresponding with this API successfully constructed in network application, then network application will receive the access request that the network operation platform sends by this API, then, return response message according to this access request to the network operation platform, this response message can be realized by the Return function in the above-mentioned code segment.If the network operation platform has received the response message that network application is returned, illustrate that then this API can normally use, therefore, return the result of " success " to network application, as shown in Figure 4; If the network operation platform does not receive the response message that network application is returned, illustrate that then this API also can't normally use, therefore, return the result of " failure " to network application.
In above-mentioned the first verification mode, be directly after generating the API definition automatically by the correctness of network operation platform validation API.In the second verification mode, the opportunity of checking is different from first kind of way, be not after fixing on generation API definition, to send out requests verification to network application immediately, but whenever can verify in follow-up running.And, the concrete operation method of the second verification mode is also different from first kind of way, first kind of way is by predefined flow process, directly after generating the API definition, automatically send out requests verification according to flow process to network application, and the second way be by the administrative staff of network operation platform when the needs checking API, input on one's own initiative some instructions, the network operation platform is processed the instruction of administrative staff's input according to predefined program, and obtains result.
For example, when adopting the second verification mode, administrative staff input " XXX.html gkey=sxd " in the instruction input frame, and wherein, the gkey in this instruction represents the game abbreviation, and sxd represents the abbreviation of " angle road " game.Administrative staff input after this instruction, on the network operation platform, then can demonstrate the API that all-network related in " angle road " game is used, for example, comprise API corresponding to " login interface ", the API that " activation interface " is corresponding, API of " exchanging the ingot interface " correspondence, and the API of " supplementing query interface with money " correspondence etc., as shown in Figure 5.Adopt this instruction meeting that the concrete url address of the API of each network application is shown, check or access for administrative staff.In addition, if administrative staff input " XXX.html gkey=sxd﹠amp in the instruction input frame; Pay=1 "; owing to increased the parameter of " pay=1 " than the instruction of introducing above; therefore; except showing " login interface ", " activation interface ", " exchanging the ingot interface "; and outside the API of " supplementing query interface with money " correspondence; go back API of further access " activation interface " and " exchanging the ingot interface " correspondence, verify according to return results whether API corresponding to " activation interface " and " exchanging the ingot interface " be correct, and the result (such as " success " or " failure ") is presented at the back of corresponding A PI, as shown in Figure 6.Further, if administrative staff input " XXX.html gkey=sxd﹠amp in the instruction input frame; Pay=1﹠amp; New=1 "; owing to further increased the parameter of " new=1 " than the instruction of introducing above; therefore; except demonstration " login interface ", " activation interface ", " exchanging the ingot interface "; and API corresponding to " supplementing query interface with money "; and further access API corresponding to " activation interface " and " exchanging the ingot interface ", outside verifying that according to return results API corresponding to " activation interface " and " exchange for ingot interface " be whether correct, also can verify for " supplementing query interface with money ", and will supplement Query Result with money and directly show, as shown in Figure 7.
In the second verification mode, in order to obtain API corresponding to each interface, a GameDock class can be set in program, in this class, be function of the corresponding definition of each interface, for example, the getLoginUrl function is used for obtaining the API of " login interface ", and the getPayDetailUrl function is used for obtaining API corresponding to " supplementing query interface with money ".
By top mode, can verify the correctness of API, pass through correctly access network operation platform of corresponding API to guarantee network application.Wherein, the first verification mode is verified in time and be need not administrative staff and carry out extra operation again, so verification mode is simple and easy to do owing to directly verify after API generates.The second verification mode is by the default instruction of input, can verify a plurality of API simultaneously according to instruction, finish one by one the mode of checking compared with each API of artificial traversal commonly used in the prior art and compare, greatly improved verification efficiency, can finish simultaneously the checking of a plurality of API.This shows that above-mentioned two kinds of verification modes of network operation platform respectively have its advantage, according to actual needs which kind of verification mode of choice for use.
After generating API and guarantee that API is correct by top mode, in step S830, the network operation platform just can visit this network application by self API of network application structure, realizes thus the purpose of the reliable access network operation platform of network application.
In addition, in the superincumbent description, be to be described as cryptographic algorithm as example take predetermined API generation standard, in the actual conditions, also can adopt other generation standard, for example, be not encrypted, only carry out the modes such as simple mathematical operation, can realize generating the purpose of API yet.
By application cut-in method provided by the invention, generate standard owing to set in advance API on the network operation platform, therefore, can after receiving the API parameter, generate the API definition according to API generation standard by the network operation platform, need not network application and write API according to technical specification, thereby both simplified the work of network application, improved the formation speed of API, and also avoided network application in compiling procedure, not cause the possibility of makeing mistakes because understanding technical specification.In addition, application connecting system provided by the invention also provides double verification mechanism, and on the one hand, network application can be verified according to cryptographic algorithm after receiving the API definition, avoid thus the problem of makeing mistakes in the Internet Transmission; On the other hand, the network operation platform can also adopt dual mode that API is verified, has further guaranteed the correctness of API, and, because the network operation platform can be carried out proof procedure, the problem of inefficiency when having avoided thus artificial checking by default program.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the specification that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice in the situation of these details not having.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate clearly thus this embodiment into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different from this embodiment the module in the equipment among the embodiment.Can be combined into a module or unit or assembly to the module among the embodiment or unit or assembly, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless in addition clearly statement, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this specification (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of the feature of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use in practice microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the file of the embodiment of the invention binding apparatus to host's file.The present invention can also be embodied as be used to part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title with these word explanations.
Claims (14)
1. use connecting system for one kind, comprising: network operation platform and network application, wherein,
The network operation platform is suitable for receiving the application programming interfaces API parameter that network application transmits; Generate standard according to predetermined API, use described API parameter generation to be applicable to the API definition of this network application;
Described network application has API, and this API is based on the API definition that is applicable to this network application that described network operation platform generates and constructs and form;
Wherein, described network operation platform visits described network application by the API of described network application.
2. the system as claimed in claim 1, described network operation platform is suitable for sending access request by the API of described network application to described network application, verify according to the response message that described network application is returned whether the API of described network application is correct, and the result is offered described network application.
3. system as claimed in claim 1 or 2, wherein said application programming interfaces API is the URL with predefined parameter.
4. such as any described system among the claim 1-3, wherein, described network operation platform is suitable for the parameter value according to the API parameter of the described network application that receives, present the API definition of described network application, and/or whether correctly and show the result the checking API corresponding with described API definition.
5. such as any described system among the claim 1-4, wherein, the API parameter of described API comprises: the interface type of API, district take information, user account number, encryption key and Apply Names abbreviation.
6. system as claimed in claim 5, described network operation platform is suitable for according to default cryptographic algorithm, based on default encryption key each API parameter is encrypted, obtain ciphering sequence, and comprise in the API that the generates definition: the interface type of API, district take information, user account number, ciphering sequence and Apply Names abbreviation.
7. system as claimed in claim 6, wherein, described network application is suitable for according to described default cryptographic algorithm when its API of structure, to being encrypted calculating from the API parameter in the API definition of network operation platform, obtain ciphering sequence based on default encryption key; Whether the ciphering sequence in judging the ciphering sequence that calculates and the API that receives defining is identical, if identical, then constructs described API.
8. application cut-in method with network application access network operation platform comprises step:
Described network operation platform receives the application programming interfaces API parameter that described network application transmits;
Described network operation platform generates standard according to predetermined API, uses described API parameter generation to be applicable to the API definition of this network application; And
The API that is applicable to this network application that described network application is generated based on described network operation platform defines to construct the API of self,
Described network operation platform visits described network application by self API of described network application structure.
9. the step that method as claimed in claim 8, described network operation platform self API by described network application structure visits described network application comprises step:
Described network operation platform sends access request by self API of described network application structure to described network application; And
The response message that returns according to described network application verifies whether self API of described network application structure is correct, and the result is offered described network application.
10. such as claim 8 or 9 described methods, wherein said API is defined as the URL chained address with predefined parameter, and described network application structure self API realizes described URL link in this network application.
11. such as any described method among the claim 8-10, also comprise step:
Described network operation platform presents the API definition of described network application according to the parameter value of the API parameter of the network application that receives.
12. such as any described method among the claim 8-11, wherein, the API parameter of described API comprises: the interface type of API, district take information, user account number, encryption key and Apply Names abbreviation.
13. method as claimed in claim 12, the step that the described API parameter of described use generates the API definition that is applicable to this network application comprises step: according to default cryptographic algorithm, based on default encryption key each API parameter is encrypted, obtain ciphering sequence, and comprise in the API that the generates definition: the interface type of API, district take information, user account number, ciphering sequence and Apply Names abbreviation.
14. method as claimed in claim 13, the API that the API that is applicable to this network application that described network application is generated based on described network operation platform defines to construct this network application self comprises:
According to described default cryptographic algorithm, based on default encryption key received API parameter is encrypted calculating, obtain ciphering sequence; And
Whether the ciphering sequence in judging the ciphering sequence that calculates and the API that receives defining is identical, if identical, then constructs described API.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210448028.2A CN102938763B (en) | 2012-11-09 | 2012-11-09 | The application connecting system of network application access network operation platform and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210448028.2A CN102938763B (en) | 2012-11-09 | 2012-11-09 | The application connecting system of network application access network operation platform and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102938763A true CN102938763A (en) | 2013-02-20 |
CN102938763B CN102938763B (en) | 2015-11-25 |
Family
ID=47697631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210448028.2A Active CN102938763B (en) | 2012-11-09 | 2012-11-09 | The application connecting system of network application access network operation platform and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102938763B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468608A (en) * | 2014-12-23 | 2015-03-25 | 北京奇虎科技有限公司 | Application program access method and device |
CN105184175A (en) * | 2015-08-07 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Protection method for data in Linux operating system |
CN107172046A (en) * | 2017-05-16 | 2017-09-15 | 郑州云海信息技术有限公司 | A kind of approaches to IM, equipment and system |
WO2021057969A1 (en) * | 2019-09-29 | 2021-04-01 | 华为技术有限公司 | Method for reporting network api capabilities, apparatus and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050138190A1 (en) * | 2003-12-19 | 2005-06-23 | Connor Patrick L. | Method, apparatus, system, and article of manufacture for grouping packets |
CN101335742A (en) * | 2007-06-25 | 2008-12-31 | 中兴通讯股份有限公司 | Directory access system and method under lightweight directory access protocol |
CN102262527A (en) * | 2010-05-31 | 2011-11-30 | 国际商业机器公司 | Method and system for generating web service |
CN102984132A (en) * | 2012-11-09 | 2013-03-20 | 北京奇虎科技有限公司 | System and method used for network application access |
-
2012
- 2012-11-09 CN CN201210448028.2A patent/CN102938763B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050138190A1 (en) * | 2003-12-19 | 2005-06-23 | Connor Patrick L. | Method, apparatus, system, and article of manufacture for grouping packets |
CN101335742A (en) * | 2007-06-25 | 2008-12-31 | 中兴通讯股份有限公司 | Directory access system and method under lightweight directory access protocol |
CN102262527A (en) * | 2010-05-31 | 2011-11-30 | 国际商业机器公司 | Method and system for generating web service |
CN102984132A (en) * | 2012-11-09 | 2013-03-20 | 北京奇虎科技有限公司 | System and method used for network application access |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468608A (en) * | 2014-12-23 | 2015-03-25 | 北京奇虎科技有限公司 | Application program access method and device |
CN105184175A (en) * | 2015-08-07 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Protection method for data in Linux operating system |
CN105184175B (en) * | 2015-08-07 | 2018-07-31 | 上海斐讯数据通信技术有限公司 | The guard method of data in a kind of (SuSE) Linux OS |
CN107172046A (en) * | 2017-05-16 | 2017-09-15 | 郑州云海信息技术有限公司 | A kind of approaches to IM, equipment and system |
WO2021057969A1 (en) * | 2019-09-29 | 2021-04-01 | 华为技术有限公司 | Method for reporting network api capabilities, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN102938763B (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10790971B1 (en) | Preventing misrepresentation of input data by participants in a secure multi-party computation | |
AU2020272058A1 (en) | Systems, devices, and methods for DLT-based data management platforms and data products | |
US8793804B2 (en) | Computer implemented method, computer system and nontransitory computer readable storage medium having HTTP module | |
CN110620810A (en) | Non-linked ownership of continuous asset transfer over blockchain | |
US20100030897A1 (en) | Method and System for Installing a Root Certificate on a Computer With a Root Update Mechanism | |
CN107026847A (en) | One kind trusts login method, server and system | |
US20090288079A1 (en) | Automatic installation of a software product on a device | |
CN108369615A (en) | Dynamically updating CAPTCHA challenges | |
CN102880456A (en) | Method and device for creating plug-in | |
US20130183948A1 (en) | Application Store System and Development Method Using the Application Store System | |
CN102938763B (en) | The application connecting system of network application access network operation platform and method | |
CN102984132B (en) | For the system and method for network application access | |
US8635447B1 (en) | Managing certificates between software environments | |
CN103034941A (en) | Internet payment method and system | |
CN105100073A (en) | Data verification method and device | |
US8566595B1 (en) | Managing secure communications with software environments | |
Cade et al. | Sun certified enterprise architect for java ee study guide | |
KR20160107662A (en) | Certification server, method for managing software license, and software license management system | |
Alamin | A social platform for software developers: Using modern web stack MERN | |
Guo et al. | Availability of Smart Contracts that Rely on External Data | |
Ruhi Velasco | Web Authorization and authentication for single page applications (SPAs) | |
US20240089250A1 (en) | Systems and methods for token-based browser extension framework | |
Enzler et al. | What’s up in RJ | |
CN118568771A (en) | Method, apparatus, medium and program product for asset privacy attestation | |
JP2018538638A (en) | Online certification mark posting system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220728 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |