CN105472015A - Method and device for accessing cloud platform to third-party application - Google Patents

Method and device for accessing cloud platform to third-party application Download PDF

Info

Publication number
CN105472015A
CN105472015A CN201510980233.7A CN201510980233A CN105472015A CN 105472015 A CN105472015 A CN 105472015A CN 201510980233 A CN201510980233 A CN 201510980233A CN 105472015 A CN105472015 A CN 105472015A
Authority
CN
China
Prior art keywords
access
party application
parameter
request
response
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
CN201510980233.7A
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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201510980233.7A priority Critical patent/CN105472015A/en
Publication of CN105472015A publication Critical patent/CN105472015A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/53Network services using third party service providers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and device for accessing a cloud platform to a third-party application and belongs to the technical field of computer communication. The method comprises the following steps: acquiring a standard request mode, and generating an access request according to the standard request mode, wherein the access request comprises an operation type and a request parameter; sending the access request to the third-party application to be accessed, wherein the access request is used for enabling the third-party application to acquire an access parameter according to the operation type and the request parameter; receiving an access response sent by the third-party application, wherein the access response comprises the access parameter; and accessing the third-party application according to the access parameter if the response format of the access response is a standard response format. The device comprises a generation module, a sending module, a first receiving module and an access module. With the adoption of the method and the device, the access efficiency can be improved.

Description

The method and apparatus of cloud platform access third-party application
Technical field
The present invention relates to computer communication technology field, particularly a kind of method and apparatus of cloud platform access third-party application.
Background technology
Along with the development of computer communication technology, the function of cloud platform from strength to strength; Such as, can access third-party application in cloud platform, when user accesses cloud platform, if user wants to access third-party application, user can not exit cloud platform, directly in cloud platform, accesses third-party application.
At present, when cloud platform access third-party application, the developer of cloud platform and the developer of third-party application discuss and determine interface, the developer of third-party application writes interface, the developer of cloud platform writes calling logic, then the developer of cloud platform and the developer of third-party application carry out uniting and adjustment, debug by rear, cloud platform access third-party application.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Developer discusses and determines interface, write calling logic, and it is more consuming time to carry out uniting and adjustment, causes the efficiency of cloud platform access third-party application low.
Summary of the invention
In order to solve the problem of prior art, the invention provides the method and apparatus of a kind of cloud platform access third-party application.Technical scheme is as follows:
A method for cloud platform access third-party application, described method comprises:
Obtain standard request mode, according to described standard request mode, generate access request, described access request comprises action type and required parameter;
Send described access request to third-party application to be accessed, described access request is used for described third-party application according to described action type and described request parameter acquiring access parameter;
Receive the access response that described third-party application sends, described access response comprises described access parameter;
If the response format of described access response is normal response form, responds according to described access the access parameter comprised, access described third-party application.
Optionally, described access parameter comprises general access parameter and difference access parameter, and described method also comprises:
Determine whether the form that described access responds is preset format, and whether the first predeterminated position of described access response carries described general access parameter, whether the second predeterminated position carries described difference access parameter;
If the form of described access response is preset format, and described first predeterminated position carries described general access parameter, and described second predeterminated position carries described difference access parameter, determine that the response format of described access response is normal response form.
Optionally, the described access parameter comprised according to described access response, before accessing described third-party application, also comprises:
According to the application identities of described third-party application, from the corresponding relation of the access parameter of application identities and configuration, obtain the access parameter of described third-party application configuration;
Respond the access parameter of access parameter and the described configuration comprised according to described access, described third-party application is verified;
When being verified, performing the described access parameter comprised according to described access response, accessing the step of described third-party application.
Optionally, described method also comprises:
Receive the parameter-configuring request that described third-party application sends;
According to described parameter-configuring request, the display parameters configuration page, and receive the access parameter that described third-party application configures at the described parameter configuration page;
Set up the corresponding relation of the application identities of described third-party application and the access parameter of described configuration.
Optionally, described according to described standard request mode, generate access request, comprising:
Obtain canonical parameter form, set up required parameter according to described canonical parameter form;
According to described standard request mode, set up described action type and described request parameter, obtain described access request.
Optionally, the described access parameter comprised according to described access response, after accessing described third-party application, also comprises:
Receive the access request that user submits to, according to the described access request display access page, described accession page comprises multiple set meal type;
Obtain the set meal type that described user selects, and according to the set meal type that described user selects, from the corresponding relation of set meal type and access parameter, obtain the access parameter that set meal type that described user selects is corresponding;
According to described access parameter, call the interface of described third-party application.
Optionally, described method also comprises:
Receive the test instruction that described third-party application is submitted to by the testing button in trigger criteria test page;
According to described test instruction, run described third-party application, obtain actual test result;
According to expectation test result and the described actual test result of described third-party application, obtain the test result of described third-party application.
Optionally, described method also comprises:
Receive the management request that described third-party application sends;
According to described management request, display management interface, described administration interface comprises multiple management interface, and described multiple management interface is used for described third-party application and is managed described third-party application by described multiple management interface.
Optionally, described access request also comprises authentication code, and described authentication code is used for described third-party application and verifies described access request according to described authentication code;
Described method also comprises:
According to the application identities of described third-party application, obtain the authentication code that described third-party application is corresponding.
A device for cloud platform access third-party application, described device comprises:
Generation module, for obtaining standard request mode, according to described standard request mode, generate access request, described access request comprises action type and required parameter;
Sending module, for sending described access request to third-party application to be accessed, described access request is used for described third-party application according to described action type and described request parameter acquiring access parameter;
First receiver module, for receiving the access response that described third-party application sends, described access response comprises described access parameter;
Access module, if be normal response form for the response format of described access response, respond according to described access the access parameter comprised, accesses described third-party application.
Optionally, described access parameter comprises general access parameter and difference access parameter, and described device also comprises:
First determination module, for determining whether the form of described access response is preset format, and whether the first predeterminated position of described access response carries described general access parameter, and whether the second predeterminated position carries described difference access parameter;
Second determination module, if be preset format for the form of described access response, and described first predeterminated position carries described general access parameter, and described second predeterminated position carries described difference access parameter, determines that the response format of described access response is normal response form.
Optionally, described device also comprises:
First acquisition module, for the application identities according to described third-party application, from the corresponding relation of the access parameter of application identities and configuration, obtains the access parameter of described third-party application configuration;
Authentication module, for responding the access parameter of access parameter and the described configuration comprised according to described access, verifies described third-party application;
When being verified, performing described access module, for responding according to described access the access parameter comprised, accessing described third-party application.
Optionally, described device also comprises:
Second receiver module, for receiving the parameter-configuring request that described third-party application sends;
First display module, for according to described parameter-configuring request, the display parameters configuration page;
3rd receiver module, for receiving the access parameter that described third-party application configures at the described parameter configuration page;
Set up module, for the corresponding relation of the access parameter of the application identities and described configuration of setting up described third-party application.
Optionally, described generation module, comprising:
Acquiring unit, for obtaining canonical parameter form;
First sets up unit, for setting up required parameter according to described canonical parameter form;
Second sets up unit, for according to described standard request mode, sets up described action type and described request parameter, obtains described access request.
Optionally, described device also comprises:
4th receiver module, for receiving the access request that user submits to;
Second display module, for according to the described access request display access page, described accession page comprises multiple set meal type;
Second acquisition module, for obtaining the set meal type that described user selects, and according to the set meal type that described user selects, obtains the access parameter that set meal type that described user selects is corresponding from the corresponding relation of set meal type and access parameter;
Calling module, for according to described access parameter, calls the interface of described third-party application.
Optionally, described device also comprises:
5th receiver module, for receiving the test instruction that described third-party application is submitted to by the testing button in trigger criteria test page;
Run module, for according to described test instruction, run described third-party application, obtain actual test result;
Comparing module, for according to the expectation test result of described third-party application and described actual test result, obtains the test result of described third-party application.
Optionally, described device also comprises:
6th receiver module, for receiving the management request that described third-party application sends;
3rd display module, for asking according to described management, display management interface, described administration interface comprises multiple management interface, and described multiple management interface is used for described third-party application and is managed described third-party application by described multiple management interface.
Optionally, described access request also comprises authentication code, and described authentication code is used for described third-party application and verifies described access request according to described authentication code;
Described device also comprises:
3rd acquisition module, for the application identities according to described third-party application, obtains the authentication code that described third-party application is corresponding.
In embodiments of the present invention, obtain standard request mode, according to standard request mode, generate access request, access request comprises action type and required parameter; Send access request to third-party application to be accessed, access request is used for third-party application and obtains access parameter according to action type and required parameter; Receive the access response that third-party application sends, access response comprises access parameter; If the response format of access response is normal response form, according to access parameter, access third-party application.The present invention arranges standard request mode and normal response mode, according to standard request mode and normal response mode access third-party application, thus do not need developer to discuss to determine interface, do not need to write calling logic, do not need uniting and adjustment i.e. accessible third-party application, improve the efficiency of cloud platform access third-party application yet.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of cloud platform access third-party application that the embodiment of the present invention 1 provides;
Fig. 2-1 is the method flow diagram of a kind of cloud platform access third-party application that the embodiment of the present invention 2 provides;
Fig. 2-2 is the interface schematic diagrames of a kind of test interface that the embodiment of the present invention 2 provides;
Fig. 3 is the apparatus structure schematic diagram of a kind of cloud platform access third-party application that the embodiment of the present invention 3 provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
At present, in cloud platform, can third-party application be accessed, when user accesses cloud platform, if when user wants to access third-party application, user can not exit cloud platform, directly accesses third-party application in cloud platform, thus improve access efficiency.
Wherein, the method access third-party application that cloud platform can provide according to the embodiment of the present invention, do not need developer to discuss and determine interface, do not need to write calling logic, also do not need uniting and adjustment, only need to arrange standard request mode and normal response mode, cloud platform is according to standard request mode and normal response mode access third-party application, thus specification access procedure, improve the efficiency of cloud platform access third-party application.
Embodiment 1
Embodiments provide the method for a kind of cloud platform access third-party application, the executive agent of the method can be cloud platform, also can be the plug-platform based on cloud platform development.See Fig. 1, wherein, the method comprises:
Step 101: obtain standard request mode, according to standard request mode, generate access request, access request comprises action type and required parameter.
Step 102: send access request to third-party application to be accessed, access request is used for third-party application and obtains access parameter according to action type and required parameter.
Step 103: receive the access response that third-party application sends, access response comprises access parameter.
Step 104: if the response format of access response is normal response form, respond the access parameter comprised according to access, access third-party application.
In embodiments of the present invention, obtain standard request mode, according to standard request mode, generate access request, access request comprises action type and required parameter; Send access request to third-party application to be accessed, access request is used for third-party application and obtains access parameter according to action type and required parameter; Receive the access response that third-party application sends, access response comprises access parameter; If the response format of access response is normal response form, according to access parameter, access third-party application.The present invention arranges standard request mode and normal response mode, according to standard request mode and normal response mode access third-party application, thus do not need developer to discuss to determine interface, do not need to write calling logic, do not need uniting and adjustment i.e. accessible third-party application, improve the efficiency of cloud platform access third-party application yet.
Embodiment 2
Embodiments provide the method for a kind of cloud platform access third-party application, the executive agent of the method can be cloud platform, also can be the plug-platform based on cloud platform development.Be plug-platform in embodiments of the present invention with executive agent for example is described.
See Fig. 2-1, wherein, the method comprises:
Step 201: obtain standard request mode, according to standard request mode, generates access request.
In embodiments of the present invention, develop a plug-platform based on cloud platform, cloud platform access plug-platform, plug-platform access third-party application, thus realize cloud platform access third party access.And plug-platform realizes accessing and management the statistics of third-party application.
Before this step, plug-platform arranged standard request method, plug-platform all presses this standard access way access third-party application.
Standard access way follows RESTful (a kind of software architecture style), and by HTTP (HyperTextTransferProtocol, HTML (Hypertext Markup Language)) method carries out access request, HTTP method map operation type, is also that access request comprises action type.
In plug-platform, the corresponding relation of storage operation type and HTTP method, as shown in table 1; When plug-platform wants access third-party application, plug-platform, according to action type, obtains HTTP method corresponding to action type from the corresponding relation of action type and HTTP method, sends access request by the HTTP method obtained to third-party application.
Table 1
It should be noted that, for arbitrary action type, always have some information to be constant, the id (mark) of such as resource; Also always there are some different information, such as, when third-party application is picture application, need the store path that picture is provided; For another example, third-party application is MySql (database) when applying, and needs the url providing resource, port numbers, username and password etc.
For convenience of description, these constant information are called general request parameter, the different information of each third party's service is called difference required parameter.Specify in standard access request mode, general request parameter is placed in Header, difference required parameter is placed in requestparam.
Wherein, general request parameter can comprise authentication code, user ID, project label and/or source.Source refers to the source of this access request, comprises cloud platform or plug-platform etc.Difference required parameter can be the service parameter that third-party application is corresponding.
Then access request also comprises authentication code, and authentication code is used for third-party application and verifies access request according to this authentication code, also namely verifies whether access request is that plug-platform sends;
The step obtaining authentication code can be: according to the application identities of third-party application, obtains the authentication code that third-party application is corresponding.
Authentication code can be keystone string or password string etc.When authentication code is keystone string, according to the application identities of third-party application, the step obtaining authentication code corresponding to third-party application can be:
Keystone module, according to the application identities of third-party application, generates the authentication code that third-party application is corresponding.
This keystone module is authentication mutual between plug-platform and third-party application, provides a kind of unified approach.And by keystone module, authentication is all unification, standard, trusted.
When authentication code is password string, a password is arranged between plug-platform and third-party application, also namely password goes here and there, set up the corresponding relation of third-party application and authentication code, accordingly, according to the application identities of third-party application, the step obtaining authentication code corresponding to third-party application can be:
According to the application identities of third-party application, from the corresponding relation of application identities and authentication code, obtain authentication code corresponding to third-party application.
Carry action type and required parameter in standard request mode regulation access request, action type maps HTTP method; Required parameter comprises general request parameter and difference required parameter, and general request parameter is placed on the first predeterminated position in access request, and difference required parameter is placed on the second predeterminated position of access request.
First predeterminated position can be the Header of access request, and the second predeterminated position can be the requestparam of access request; Then standard request mode specifies general request mode to be placed in the Header of access request, is placed in the requestparam of access request by difference required parameter.
Before this step, plug-platform can also arrange the canonical parameter form of access request, then access request comprises the required parameter of standard request parameter format.
Such as, the code of the canonical parameter form of plug-platform agreement access request is as follows:
1、{
2、“plan”:“xxxx”,
3、“config”:{
4、“DISK”:“SSD”,
5、“plan”:“BASIC02”,
6、“MEMORY”:“2”,
7、“REPLICATTON”;“0”
8、}
9、}
Wherein, canonical parameter form adopts json form, and in canonical parameter form, the first order is parameter name plan and config of agreement.All differences required parameter can be placed in config.
Accordingly, in this step, according to standard request mode, the step generating access request can be:
Obtain canonical parameter form, set up required parameter according to this canonical parameter form;
According to standard request mode, set up action type and required parameter, obtain access request.
Wherein, before this step, all right configuration parameter name of third-party application, detailed process can be:
Third-party application sends parameter name configuring request to plug-platform; Plug-platform receives the parameter name configuring request that third-party application sends, and according to this parameter name configuring request display parameters name configuration interface, parameter name configuration interface is used for third-party application configuration parameter name, and submits the parameter name of configuration to plug-platform; Plug-platform obtains the parameter name that third-party application configures at parameter name configuration interface.
Plug-platform sets up the corresponding relation of the application identities of third-party application and the parameter name of configuration; Accordingly, the step obtaining required parameter can be:
According to the application identities of third-party application, obtain the parameter name of third-party application configuration from the corresponding relation of the parameter name of application identities and configuration.
Required parameter comprises the parameter name of third-party application configuration.Third-party application configuration parameter name is as shown in table 2 below:
Table 2
Parameter name Explanation Type
DISK Whether be SSD hard disk Text
Plan Set meal type Text
MEMORY Buffer memory size Text
REPLICATION Whether be with from storehouse Text
Step 202: send access request to third-party application to be accessed, this access request is used for third-party application and obtains access parameter according to action type and required parameter.
Before this step, plug-platform arranged standard response format, normal response form also follows RESTful design, and normal response form comprises operating result.
Wherein, normal response form comprises the conditional code of HTTP method, the conditional code respective operations result of HTTP method.
Such as, the conditional code of HTTP method is 200, then determination operation result is successful operation; The conditional code of HTTP method is 4xx or 5xx, then determination operation result is operation failure.
The returned content of standard is as follows:
1、{
2、“id”:“68788943-d109-416b-983d-e3df70a9463b”
3、“config_vars”:{
4、“port”:“3306”,
5、{slave_host}:“d9888.mysql.oa.com”,
6、“slave_host”:“fd9888.slave.mysql.oa.com”,
7、“default_db”:“db_name”,
8、“user”:“a742e2fe34d6”,
9、“password”:“12345678”
10、},
11、“message”:“success!!!”
12、}
The above to be third-party application be MySql application return example.For all third-party application, plug-platform is arranged, and normal response form all adopts json form, and the first order of json will comprise id, these three attributes of message, config_vars.
Wherein, id is resource id, the follow-up deletion to this resource, changes, is all undertaken by this id.Message is subsidiary message, particularly during operation failure, conveniently informs the reason of user's failure.In config_vars, can comprise with the relevant difference required parameter of application, the parameter of different service is different.
Further, third-party application receives this access request, obtains the authentication code that this access request comprises, and obtains the authentication code of agreement or from keystone module, is retrieved as the authentication code of third-party application generation; Determine that whether this authentication code is the authentication code of this acquisition; If this authentication code is the authentication code of this acquisition, this access request is verified, according to normal response form, sets up access response, send this access response to plug-platform, perform step 203.
Further, if this authentication code is not the authentication code of this acquisition, do not pass through the checking of this access request, send the first information to plug-platform, this first information is for pointing out plug-platform authentication code wrong; Plug-platform receives the first information that third-party application sends, determine that this authentication code is wrong according to this first information, again obtain authentication code corresponding to third-party application, and again set up access request, send this access request again set up to third-party application.
Step 203: receive the access response that third-party application sends, this access response comprises access parameter.
Determine whether the response format that this access responds is normal response form, if the response format of this access response is normal response form, perform step 204; If the response format of this access response is not normal response form, send the second information to third-party application, the second information adopts normal response form to send access response for pointing out third-party application.
Wherein, determine that whether response format that this access responds is the step of normal response form and can is:
Determine whether the form accessing response is preset format, and whether the first predeterminated position of access response carries general access parameter, whether the second predeterminated position of access response carries difference access parameter;
If the form of access response is preset format, and access response first predeterminated position carries general access parameter, and the second predeterminated position carries difference access parameter, determines that the response format accessing response is normal response form.
Step 204: if the response format of access response is normal response form, according to the application identities of third-party application, from the corresponding relation of the access parameter of application identities and configuration, obtain the access parameter of third-party application configuration.
Before this step, third-party application can also configure access parameter in plug-platform, specifically can pass through following steps (1) to (3) and realize, comprise:
(1): receive the parameter-configuring request that third-party application sends;
When third-party application is wanted to configure access parameter in plug-platform, third-party application sends parameter-configuring request to plug-platform; Plug-platform receives the parameter-configuring request that third-party application sends, and performs step (2).
(2): according to parameter-configuring request, the display parameters configuration page, and receive the access parameter that third-party application configures at the parameter configuration page;
The parameter configuration page is used for third-party application and configures access parameter in the parameter configuration page, and the access parameter of configuration is submitted to plug-platform.
Such as, parameter configuration page face is as shown in table 3 below;
Table 3
Access parameter Parametric description
Password Password
Slave_host MySql is from storehouse reference address, if be rudimentary set meal type, this address is resolved to master library
Host MySql master library reference address
Default_db Default data library name
user User name
port Port
(3): the corresponding relation setting up the application identities of third-party application and the access parameter of configuration.
The application identities of third-party application and the access parameter of configuration are stored in the corresponding relation of the access parameter of application identities and configuration by plug-platform.
Application identities can be the title of application, the effect etc. of application.
Step 205: the access parameter responding access parameter and the configuration comprised according to this access, verifies third-party application.
Plug-platform determines that whether the access parameter received is identical with the access parameter of configuration; If identical, determine to be verified third-party application, perform step 206; If not identical, determine not pass through third-party application checking, sending the 3rd information to third-party application, the access parameter of the 3rd information for pointing out third-party application to carry configuration.
Step 206: when being verified, responds the access parameter comprised according to this access, access third-party application.
Step 207: receive the test instruction that described third-party application is submitted to by the testing button in trigger criteria test page.
Plug-platform can also provide a standard access testing tool, standard access testing tool comprises the standard testing page, this standard testing page comprises testing button, after plug-platform access third-party application, third-party application can be tested self by means of this standard testing page, specifically can pass through following steps (1) to (3) to realize, comprise:
(1): receive the test request that third-party application sends;
When third-party application is wanted to test self, third-party application sends test request to plug-platform; Plug-platform receives the test request that third-party application sends, and performs step (2).
(2): according to this test request display standard testing page, the standard testing page is used for third-party application and submits test instruction to;
The standard testing page comprises testing button, as shown in Fig. 2-2; When developer's hit testing button of third-party application, send test instruction to trigger third-party application to plug-platform.
(3): receive the test instruction that third-party application is submitted to by the testing button in trigger criteria test page.
Step 208: according to this test instruction, runs third-party application, obtains actual test result.
Step 209: according to expectation test result and the actual test result of third-party application, obtain the test result of third-party application.
Further, plug-platform can also provide administration page, can be provided some descriptors of third-party application, facilitate user to understand third-party application by administration page third-party application, specifically can pass through following steps (1) and (2) realization, comprise:
(1): receive the management request that third-party application sends;
When third-party application fills in some descriptors, third-party application sends management request to plug-platform; Plug-platform receives the management request that third-party application sends.
(2): according to management request, display management interface, administration interface comprises multiple management interface;
Multiple management interface is used for third-party application and is managed third-party application by multiple management interface.
Multiple management interface can comprise title interface, class interface, digest interface, feature interface, icon interface, document interface and set meal interface.
Title interface is used for the Apply Names of third-party application by this title interface configuration third-party application, and Apply Names comprises Chinese and English name.English name is used for the program of third-party application and the mutual of interface.
Class interface is used for the applicating category of third-party application by this classification interface configuration third-party application, and applicating category comprises instant messaging classification, game classification etc.
Digest interface is used for the summary info of third-party application by this digest interface configuration third-party application, and this summary info can summarize third-party application by tens words.
Feature interface is used for the application characteristic of third-party application by this feature interface configuration third-party application, and application characteristic is supplemented the simple of summary info of third-party application.
Icon interface is used for the application icon of third-party application by this icon interface configuration third-party application, and application icon can for the application icon beautified.
Document interface is used for the profile of third-party application by the document interface configuration third-party application, and profile comprises application note and uses the operation instruction of third-party application; And profile uses markdown, to bring more unified document reading experience.
Set meal interface is used for the application set meal of third-party application by set meal interface configuration third-party application, and application set meal comprises set meal type and access parameter; Set meal type in plug-platform storage application set meal and the corresponding relation of access parameter.
Because third-party application has different types, the access parameter that different types is corresponding different.Such as, third-party application is MySql, when user wants an establishment MySql, user needs whether oneself input is with from storehouse, buffer content is much, whether be the access parameters such as SSD hard disk, it is consuming time longer that user inputs these access parameters, when especially user does not know how to fill in these access parameters, consuming time longer.Third-party application is by set meal interface configuration set meal type and access parameter.User can directly select set meal type, the set meal type that plug-platform is selected according to user, obtains the access parameter that the set meal type of user's selection is corresponding, according to this access parameter, calls the interface of third-party application.
The step that then user calls the interface of third-party application can be realized by following steps (A) to (C), comprising:
(A): receive the access request that user submits to, according to this access request display access page, this accession page comprises multiple set meal type;
When plug-platform access third party accesses, user can access third party's service, and now user can send access request by the terminal of its correspondence to plug-platform; The access request that plug-platform receiving terminal sends.According to this access request display access page, this accession page comprises access parameter corresponding to each set meal type in multiple set meal type and multiple set meal type, user can understand each set meal type by the access parameter corresponding according to each set meal type, then selects set meal type.
Such as, the service that the configuration of senior set meal type correspondence is higher, the service that the configuration of intermediate set meal type correspondence is lower, the service etc. that the configuration of rudimentary set meal type correspondence is lower.
(B) from the corresponding relation of set meal type and access parameter: obtain the set meal type that user selects, and according to the set meal type that user selects, obtain the access parameter that set meal type that user selects is corresponding;
The step obtaining the set meal type that user selects can be:
User can select set meal type from set meal type, and the discussion type of selection is submitted to terminal; Terminal obtains the set meal type that user selects, and sends the set meal type of user's selection to plug-platform; The set meal type that the user that plug-platform receiving terminal sends selects.
(C) interface of third-party application: according to access parameter, is called.
In embodiments of the present invention, obtain standard request mode, according to standard request mode, generate access request, access request comprises action type and required parameter; Send access request to third-party application to be accessed, access request is used for third-party application and obtains access parameter according to action type and required parameter; Receive the access response that third-party application sends, access response comprises access parameter; If the response format of access response is normal response form, according to access parameter, access third-party application.The present invention arranges standard request mode and normal response mode, according to standard request mode and normal response mode access third-party application, thus do not need developer to discuss to determine interface, do not need to write calling logic, do not need uniting and adjustment i.e. accessible third-party application, improve the efficiency of cloud platform access third-party application yet.
Embodiment 3
Embodiments provide the device of a kind of cloud platform access third-party application, this device is for performing the method for the cloud platform access third-party application as described in embodiment 1 and embodiment 2, and see Fig. 3, wherein, this device comprises:
Generation module 301, for obtaining standard request mode, according to standard request mode, generate access request, access request comprises action type and required parameter;
Sending module 302, for sending access request to third-party application to be accessed, access request is used for third-party application and obtains access parameter according to action type and required parameter;
First receiver module 303, for receiving the access response that third-party application sends, access response comprises access parameter;
Access module 304, if be normal response form for the response format of access response, according to access parameter, access third-party application.
Optionally, access parameter comprises general access parameter and difference access parameter, and device also comprises:
First determination module, for determining whether the form accessing response is preset format, and the first predeterminated position of access response carries general access parameter, and the second predeterminated position carries difference access parameter;
Second determination module, if be preset format for the form of access response, and the first predeterminated position carries general access parameter, and the second predeterminated position carries difference access parameter, determines that the response format accessing response is normal response form.
Optionally, device also comprises:
First acquisition module, for the application identities according to third-party application, from the corresponding relation of the access parameter of application identities and configuration, obtains the access parameter of third-party application configuration;
Authentication module, for the access parameter according to the access parameter received and configuration, verifies third-party application;
When being verified, performing access module 304, for according to access parameter, accessing third-party application.
Optionally, device also comprises:
Second receiver module, for receiving the parameter-configuring request that third-party application sends;
First display module, for according to parameter-configuring request, the display parameters configuration page;
3rd receiver module, for receiving the access parameter that third-party application configures at the parameter configuration page;
Set up module, for the corresponding relation of the access parameter of the application identities and configuration of setting up third-party application.
Optionally, generation module 301, comprising:
Acquiring unit, for obtaining canonical parameter form;
First sets up unit, for setting up required parameter according to canonical parameter form;
Second sets up unit, for according to standard request mode, sets up action type and required parameter, obtains access request.
Optionally, device also comprises:
4th receiver module, for receiving the access request that user submits to;
Second display module, for according to the access request display access page, accession page comprises multiple set meal type;
Second acquisition module, for obtaining the set meal type that user selects, and according to the set meal type that user selects, obtains the access parameter that set meal type that user selects is corresponding from the corresponding relation of set meal type and access parameter;
Calling module, for according to access parameter, calls the interface of third-party application.
Optionally, device also comprises:
5th receiver module, for receiving the test instruction that third-party application is submitted to by the testing button in trigger criteria test page;
Run module, for according to test instruction, run third-party application, obtain actual test result;
Comparing module, for according to the expectation test result of third-party application and actual test result, obtains the test result of third-party application.
Optionally, device also comprises:
6th receiver module, for receiving the management request that third-party application sends;
3rd display module, for asking according to management, display management interface, administration interface comprises multiple management interface, and multiple management interface is used for third-party application and is managed third-party application by multiple management interface.
Optionally, access request also comprises authentication code, and authentication code is used for third-party application and verifies access request according to authentication code;
Device also comprises:
3rd acquisition module, for the application identities according to third-party application, obtains the authentication code that third-party application is corresponding.
In embodiments of the present invention, obtain standard request mode, according to standard request mode, generate access request, access request comprises action type and required parameter; Send access request to third-party application to be accessed, access request is used for third-party application and obtains access parameter according to action type and required parameter; Receive the access response that third-party application sends, access response comprises access parameter; If the response format of access response is normal response form, according to access parameter, access third-party application.The present invention arranges standard request mode and normal response mode, according to standard request mode and normal response mode access third-party application, thus do not need developer to discuss to determine interface, do not need to write calling logic, do not need uniting and adjustment i.e. accessible third-party application, improve the efficiency of cloud platform access third-party application yet.
It should be noted that: the device of the cloud platform access third-party application that above-described embodiment provides is when cloud platform access third-party application, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the embodiment of the method that the device of the cloud platform access third-party application that above-described embodiment provides and cloud platform access third-party application belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for cloud platform access third-party application, it is characterized in that, described method comprises:
Obtain standard request mode, according to described standard request mode, generate access request, described access request comprises action type and required parameter;
Send described access request to third-party application to be accessed, described access request is used for described third-party application according to described action type and described request parameter acquiring access parameter;
Receive the access response that described third-party application sends, described access response comprises described access parameter;
If the response format of described access response is normal response form, responds according to described access the access parameter comprised, access described third-party application.
2. method according to claim 1, is characterized in that, described access parameter comprises general access parameter and difference access parameter, and described method also comprises:
Determine whether the form that described access responds is preset format, and whether the first predeterminated position of described access response carries described general access parameter, whether the second predeterminated position carries described difference access parameter;
If the form of described access response is preset format, and described first predeterminated position carries described general access parameter, and described second predeterminated position carries described difference access parameter, determine that the response format of described access response is normal response form.
3. method according to claim 1, is characterized in that, the described access parameter comprised according to described access response, before accessing described third-party application, also comprises:
According to the application identities of described third-party application, from the corresponding relation of the access parameter of application identities and configuration, obtain the access parameter of described third-party application configuration;
Respond the access parameter of access parameter and the described configuration comprised according to described access, described third-party application is verified;
When being verified, performing the described access parameter comprised according to described access response, accessing the step of described third-party application.
4. method according to claim 1, is characterized in that, the described access parameter comprised according to described access response, after accessing described third-party application, also comprises:
Receive the access request that user submits to, according to the described access request display access page, described accession page comprises multiple set meal type;
Obtain the set meal type that described user selects, and according to the set meal type that described user selects, from the corresponding relation of set meal type and access parameter, obtain the access parameter that set meal type that described user selects is corresponding;
According to described access parameter, call the interface of described third-party application.
5. method according to claim 1, is characterized in that, described method also comprises:
Receive the test instruction that described third-party application is submitted to by the testing button in trigger criteria test page;
According to described test instruction, run described third-party application, obtain actual test result;
According to expectation test result and the described actual test result of described third-party application, obtain the test result of described third-party application.
6. a device for cloud platform access third-party application, it is characterized in that, described device comprises:
Generation module, for obtaining standard request mode, according to described standard request mode, generate access request, described access request comprises action type and required parameter;
Sending module, for sending described access request to third-party application to be accessed, described access request is used for described third-party application according to described action type and described request parameter acquiring access parameter;
First receiver module, for receiving the access response that described third-party application sends, described access response comprises described access parameter;
Access module, if be normal response form for the response format of described access response, respond according to described access the access parameter comprised, accesses described third-party application.
7. device according to claim 6, is characterized in that, described access parameter comprises general access parameter and difference access parameter, and described device also comprises:
First determination module, for determining whether the form of described access response is preset format, and whether the first predeterminated position of described access response carries described general access parameter, and whether the second predeterminated position carries described difference access parameter;
Second determination module, if be preset format for the form of described access response, and described first predeterminated position carries described general access parameter, and described second predeterminated position carries described difference access parameter, determines that the response format of described access response is normal response form.
8. device according to claim 6, is characterized in that, described device also comprises:
First acquisition module, for the application identities according to described third-party application, from the corresponding relation of the access parameter of application identities and configuration, obtains the access parameter of described third-party application configuration;
Authentication module, for responding the access parameter of access parameter and the described configuration comprised according to described access, verifies described third-party application;
When being verified, performing described access module, for responding according to described access the access parameter comprised, accessing described third-party application.
9. device according to claim 6, is characterized in that, described device also comprises:
4th receiver module, for receiving the access request that user submits to;
Second display module, for according to the described access request display access page, described accession page comprises multiple set meal type;
Second acquisition module, for obtaining the set meal type that described user selects, and according to the set meal type that described user selects, obtains the access parameter that set meal type that described user selects is corresponding from the corresponding relation of set meal type and access parameter;
Calling module, for according to described access parameter, calls the interface of described third-party application.
10. device according to claim 6, is characterized in that, described device also comprises:
5th receiver module, for receiving the test instruction that described third-party application is submitted to by the testing button in trigger criteria test page;
Run module, for according to described test instruction, run described third-party application, obtain actual test result;
Comparing module, for according to the expectation test result of described third-party application and described actual test result, obtains the test result of described third-party application.
CN201510980233.7A 2015-12-22 2015-12-22 Method and device for accessing cloud platform to third-party application Pending CN105472015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510980233.7A CN105472015A (en) 2015-12-22 2015-12-22 Method and device for accessing cloud platform to third-party application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510980233.7A CN105472015A (en) 2015-12-22 2015-12-22 Method and device for accessing cloud platform to third-party application

Publications (1)

Publication Number Publication Date
CN105472015A true CN105472015A (en) 2016-04-06

Family

ID=55609278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510980233.7A Pending CN105472015A (en) 2015-12-22 2015-12-22 Method and device for accessing cloud platform to third-party application

Country Status (1)

Country Link
CN (1) CN105472015A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878333A (en) * 2017-03-28 2017-06-20 上海爱数信息技术股份有限公司 A kind of third party authentication method, device and application system server
CN107621968A (en) * 2016-07-15 2018-01-23 阿里巴巴集团控股有限公司 One kind instruction issues request processing method and control node
CN108121606A (en) * 2016-11-26 2018-06-05 上海壹账通金融科技有限公司 The method and device of coded data generation based on joint debugging interface
CN108449418A (en) * 2018-03-29 2018-08-24 新华三云计算技术有限公司 A kind of mixed cloud platform management system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946022A (en) * 2006-10-31 2007-04-11 华为技术有限公司 Method and system for switching third party landing and third party network and service server
CN101166173A (en) * 2006-10-20 2008-04-23 北京直真节点技术开发有限公司 A single-node login system, device and method
US20090271847A1 (en) * 2008-04-25 2009-10-29 Nokia Corporation Methods, Apparatuses, and Computer Program Products for Providing a Single Service Sign-On
CN102739708A (en) * 2011-04-07 2012-10-17 腾讯科技(深圳)有限公司 System and method for accessing third party application based on cloud platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166173A (en) * 2006-10-20 2008-04-23 北京直真节点技术开发有限公司 A single-node login system, device and method
CN1946022A (en) * 2006-10-31 2007-04-11 华为技术有限公司 Method and system for switching third party landing and third party network and service server
US20090271847A1 (en) * 2008-04-25 2009-10-29 Nokia Corporation Methods, Apparatuses, and Computer Program Products for Providing a Single Service Sign-On
CN102739708A (en) * 2011-04-07 2012-10-17 腾讯科技(深圳)有限公司 System and method for accessing third party application based on cloud platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIZEYANG: ""实践总结:云平台接入第三方服务的统一接入方案"", 《HTTP://CLOUD.51CTO.COM/ART/201509/490052_1.HTM》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107621968A (en) * 2016-07-15 2018-01-23 阿里巴巴集团控股有限公司 One kind instruction issues request processing method and control node
CN108121606A (en) * 2016-11-26 2018-06-05 上海壹账通金融科技有限公司 The method and device of coded data generation based on joint debugging interface
CN108121606B (en) * 2016-11-26 2021-02-19 深圳壹账通智能科技有限公司 Method and device for generating coded data based on joint debugging interface
CN106878333A (en) * 2017-03-28 2017-06-20 上海爱数信息技术股份有限公司 A kind of third party authentication method, device and application system server
CN106878333B (en) * 2017-03-28 2019-11-12 上海爱数信息技术股份有限公司 A kind of third party authentication method, device and application system server
CN108449418A (en) * 2018-03-29 2018-08-24 新华三云计算技术有限公司 A kind of mixed cloud platform management system and method
CN108449418B (en) * 2018-03-29 2021-08-06 新华三云计算技术有限公司 Hybrid cloud platform management system and method

Similar Documents

Publication Publication Date Title
US10387292B2 (en) Determining application test results using screenshot metadata
US11513864B2 (en) Adoption of existing virtual computing resources into logical containers for management operations
WO2019015288A1 (en) Method, device and system for persistent data processing, and readable storage medium
KR102376713B1 (en) Composite partition functions
CN110750436B (en) Layered testing method and device, computer readable medium and electronic equipment
CN108519967A (en) Chart method for visualizing, device, terminal and storage medium
US11843674B2 (en) Virtual workspace experience visualization and optimization
CN105472015A (en) Method and device for accessing cloud platform to third-party application
TW201439792A (en) System and method for accessing database
CN111475376A (en) Method and device for processing test data, computer equipment and storage medium
CN105786695A (en) Data test method and system
CN108459910A (en) A kind of method and apparatus for deleting resource
CN109840201B (en) UI test method, device, electronic equipment and computer readable storage medium
CN108345508B (en) Interface call testing method and device
CN113485927A (en) Test data generation method, device, equipment and storage medium
CN109614271A (en) Control method, device, equipment and the storage medium of multiple company-data consistency
CN112650689A (en) Test method, test device, electronic equipment and storage medium
WO2023029881A1 (en) Device control method and apparatus
US11902804B2 (en) Fault triage and management with restricted third-party access to a tenant network
CN109246077A (en) Distributed concurrent transaction method of calibration, device and computer storage medium
US8868709B2 (en) Programmatically selecting a service provider based on assured quality of service attributes
CN112131095B (en) Pressure testing method and device
CN113535590A (en) Program testing method and device
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium
CN107851165B (en) Key system, key client and key management method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20160406

RJ01 Rejection of invention patent application after publication