CN108009026A - Interface call method, third party's data access platform and computer-readable medium - Google Patents

Interface call method, third party's data access platform and computer-readable medium Download PDF

Info

Publication number
CN108009026A
CN108009026A CN201711019062.7A CN201711019062A CN108009026A CN 108009026 A CN108009026 A CN 108009026A CN 201711019062 A CN201711019062 A CN 201711019062A CN 108009026 A CN108009026 A CN 108009026A
Authority
CN
China
Prior art keywords
data
interface
party
request
target
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.)
Withdrawn
Application number
CN201711019062.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.)
Shenzhen Maimaiti Tesco Nationwide Financial Services Inc
Original Assignee
Shenzhen Maimaiti Tesco Nationwide Financial Services Inc
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 Shenzhen Maimaiti Tesco Nationwide Financial Services Inc filed Critical Shenzhen Maimaiti Tesco Nationwide Financial Services Inc
Priority to CN201711019062.7A priority Critical patent/CN108009026A/en
Publication of CN108009026A publication Critical patent/CN108009026A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a kind of interface call method, third party's data access platform and computer-readable medium, wherein method includes:By preset internal interface, the interface access request from request of data side is received;The channel mark of the request of data side is obtained from the interface access request, and determines the corresponding third party's data-interface set of the channel mark;Distribute third party's data-interface in third party's data-interface set described in thread dispatching.The embodiment of the present invention can simplify the communication mode of request of data side and third party's data access platform so that request of data side can quickly access third party's data-interface.

Description

Interface call method, third party's data access platform and computer-readable medium
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of interface call method, third party's data access Platform and computer-readable medium.
Background technology
At present, during internal business systems call external interface by the unified platform, accessed for the unified platform Each external interface, each internal business systems are required for individually being called it.If the outside of unified platform access connects Mouth is more, will make it that code is cumbersome, be unfavorable for safeguarding.Also, when the unified platform newly accesses an external interface, all need The external interface for notifying the corresponding business channel side modification code call of each internal business systems newly to access.In view of on version The problem of line, internal business systems call the external interface newly accessed to be also possible to expend for a long time.
The content of the invention
The embodiment of the present invention provides a kind of interface call method, can simplify request of data side and be put down with third party's data access The communication mode of platform so that request of data side can quickly access third party's data-interface.
In a first aspect, an embodiment of the present invention provides a kind of interface call method, applied to third party's data access platform, The described method includes:
By preset internal interface, the interface access request from request of data side is received;
The channel mark of the request of data side is obtained from the interface access request, and determines the channel mark pair The third party's data-interface set answered;
Distribute third party's data-interface in third party's data-interface set described in thread dispatching.
Second aspect, an embodiment of the present invention provides a kind of third party's data access platform, third party's data access Platform includes being used to perform the module of the method for above-mentioned first aspect.
The third aspect, an embodiment of the present invention provides another third party's data access platform, third party's data connect Entering platform includes processor, input equipment, output equipment and memory, the processor, input equipment, output equipment and storage Device is connected with each other, wherein, the memory is used to store the computer for supporting third party's data access platform to perform the above method Program, the computer program include programmed instruction, and the processor is arranged to call described program instruction, performs above-mentioned The method of first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, and the computer program realizes the method in above-mentioned first aspect when being executed by processor.
In embodiments of the present invention, request of data side please by the access of common interface (i.e. preset internal interface) transmission interface Ask and docked with third party's data access platform to request of data side in third party's data access platform, can be simplified to greatest extent Mode, third party's data-interface is masked to data requesting party and is reached the standard grade or offline difference, when new third party's data connect Mouth is linked into after third party's data access platform, and request of data side can quickly access third party's data-interface.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of interface call method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another interface call method provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of third party's data access platform provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of another third party's data access platform provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of another third party's data access platform provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment, belongs to the scope of protection of the invention.
Term " first ", " second " and " the 3rd " in description and claims of this specification and above-mentioned attached drawing etc. is For distinguishing different objects, not for description particular order.In addition, term " comprising " and their any deformations, it is intended that Non-exclusive included in covering.Such as process, method, system, product or the equipment for containing series of steps or unit do not have The step of having listed or unit are defined in, but alternatively further includes the step of not listing or unit, or is alternatively further included For the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Fig. 1 is referred to, is a kind of flow diagram of interface call method provided in an embodiment of the present invention.Specifically, institute Each step that the method for stating includes can be performed by third party's data access platform.Interface call method as shown in Figure 1 can be with Including:
S101, by preset internal interface, receive the interface access request from request of data side.
In embodiments of the present invention, third party's data access platform can be specially that risk control (air control) data connect Enter platform.
Wherein, the preset internal interface is in the pre-set common interface of third party's data access platform, is used Communicate in the request of data side.Wherein, the request of data side is internal business systems, or is peripheral channel system System.
Wherein, call parameters set and the channel mark of the request of data side are included in the interface access request. Wherein, the third party's data-interface life being connected with third party's data access platform can be included in the call parameters set Into the interface call parameters (such as name, ID card No. and telephone number) needed for third party's data.It is in the specific implementation, described It can include as far as possible more parameters, or general parameter in call parameters set.The general parameter, can be that certain is a kind of The parameter shared in type access request.When with a variety of different types of access requests, being provided with according to actual conditions Corresponding shared parameter, to form corresponding call parameters set.
S102, the channel mark for obtaining from the interface access request request of data side, and determine the channel Identify corresponding third party's data-interface set.
, can be with the channel of preset data requesting party in third party's data access platform in a specific embodiment Identify the correspondence between (ID) and third party's data-interface.Wherein, a channel mark can correspond to one or more the Tripartite's data-interface, i.e., can include one or more third party's data-interfaces in described third party's data-interface set.
Third party's data-interface in third party's data-interface set described in S103, distribution thread dispatching.
Wherein, third party's data access platform performs third party's data-interface set described in the distribution thread dispatching In third party's data-interface can specifically include:Target third party's data are determined from third party's data-interface set Interface, and distribute thread for the target third party data-interface;Connect by the thread of distribution to the target third party data Mouth transmission interface call request, the interface call request are used to indicate that the target third party data-interface is called according to interface Parameter generates third party's data.
If it should be noted that the call parameters set includes some in third party's data-interface set Interface call parameters needed for third party's data-interface generation third party's data, then be determined as mesh by third party's data-interface Mark third party's data-interface;If do not include in the call parameters set in third party's data-interface set some the Interface call parameters needed for tripartite's data-interface generation third party's data, show that the request of data side can not access described the Tripartite's data-interface.
Wherein, the target third party data-interface can also be generated third party's number by third party's data access platform It is encapsulated into according to required interface call parameters in interface call request, the interface call request is specifically used for indicating the target Third party's data-interface generates third party's data according to the interface call parameters.
Further, third party's data access platform can receive the 3rd at the target third party data-interface Number formulary evidence.In embodiments of the present invention, third party's data are the target third party data-interfaces according to the interface tune The air control data generated with parameter.Wherein, the air control data can include but is not limited to blacklist data, overdue information, borrow Information, the credit scoring obtained according to consumption information, phone in information such as net durations etc. are borrowed, the embodiment of the present invention does not do this Limit.
In embodiments of the present invention, request of data side please by the access of common interface (i.e. preset internal interface) transmission interface Ask and docked with third party's data access platform to request of data side in third party's data access platform, can be simplified to greatest extent Mode, third party's data-interface is masked to data requesting party and is reached the standard grade or offline difference, when new third party's data connect Mouth is linked into after third party's data access platform, and request of data side can quickly access third party's data-interface.
Fig. 2 is referred to, is the flow diagram of another interface call method provided in an embodiment of the present invention.Specifically, The described method includes each step can be performed by third party's data access platform.Interface call method as shown in Figure 2 can With including:
S201, by preset internal interface, receive the interface access request from request of data side.
In embodiments of the present invention, third party's data access platform can be specially that risk control (air control) data connect Enter platform.Alternatively, third party's data access platform can include logic module and component of increasing income.Wherein, the logic Component can include investigation mission outside the city or town actuator, configuration manager, poll/monitoring service and security authorization service etc., the group of increasing income Part can include httpClient, webservice, quarz, spring and maybatis etc..Specifically, httpClient It can be used for providing efficient, newest, feature-rich support hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) agreement client programming kit, webservice be a platform independence, lower coupling, from wrap Application program containing, based on programmable WWW (web), between the application of foundation webservice enforcement of regulations, no matter What language, platform or internal agreement used in them be, can be exchanged with each other data or integrated, quarz is one complete Entirely by the job scheduling frame of increasing income of written in Java, spring is the Java Development Frameworks of a lightweight, while is also one One-stop (full-stack) the lightweight open source frames of JavaSE/EE of layering, maybatis is one based on the lasting of Java Layer frame.
Wherein, the preset internal interface is in the pre-set common interface of third party's data access platform, is used Communicate in the request of data side.Wherein, the request of data side is internal business systems, or is peripheral channel system System.
Alternatively, third party's data access platform performs the preset internal interface, and reception comes from request of data side Interface access request can specifically include:By preset internal interface, received in a manner of instant messaging communication from data The interface access request of requesting party;Alternatively, by preset internal interface, being received in a manner of postponing message communication please from data The interface access request for the side of asking.
Wherein, the instant messaging communication can include but is not limited to http protocol and remote procedure call protocol (Remote Procedure Call Protocol, RPC).The delay message communication can include but is not limited to message queue Agreement (Message Queuing Protocol, MQP).
It should be noted that third party's data access platform receives the interface access request from request of data side Mode is determined as the technology stack used in the request of data side.Certainly, according to used in the request of data side is specific Technology stack, third party's data access platform can also receive the interface from the request of data side in other way Access request, it is not limited in the embodiment of the present invention.
It should be noted that when having multiple untreated interface access requests in third party's data access platform, Third party's data access platform can be according to the sequencing of the receiving time of the multiple interface access request, by holding Row step S202-S207 responds the multiple interface access request.
If it should also be noted that, some in the multiple untreated interface access request or the access of some interfaces The overlong time for asking corresponding request of data side to wait, can be with some or some interface access requests described in preferential answering.
It should also be noted that, when the receiving time of the interface access request from multiple request of data sides is identical, institute The system priority of the multiple request of data side can be determined by stating third party's data access platform, and according to system priority by High to Low order, the interface access request of the multiple request of data side is responded by performing step S202-S207.
Wherein, system priority list, the system priority list are stored with third party's data access platform Include the system priority of each request of data side being connected with third party's data access platform.So as to the described 3rd Number formulary can determine that the system of the multiple request of data side is excellent according to access platform by inquiring about the system priority list First level.
S202, the channel mark for obtaining from the interface access request request of data side, and determine the channel Identify corresponding third party's data-interface set.
In a specific embodiment, the channel mark of request of data side is prefixed in third party's data access platform Know the correspondence between (ID) and third party's data-interface (i.e. external interface).Wherein, a channel mark can correspond to one A or multiple third party's data-interfaces, i.e., can include one or more third party's data in described third party's data-interface set Interface.
S203, obtain call parameters set from the interface access request, and according to the call parameters set, from institute State and target third party's data-interface is determined in third party's data-interface set.
Wherein, call parameters set and the channel mark of the request of data side are included in the interface access request. Wherein, the third party's data-interface life being connected with third party's data access platform can be included in the call parameters set Into the interface call parameters (such as name, ID card No. and telephone number) needed for third party's data.It is in the specific implementation, described It can include as far as possible more parameters in call parameters set.
Specifically, what third party's data access platform can determine in third party's data-interface set each connects Interface call parameters needed for mouth generation third party's data.In a specific embodiment, third party's data access is put down Third party's data-interface is also prefixed in platform and it generates correspondence between the interface call parameters needed for third party's data.
Further, whether third party's data access platform can be detected in the call parameters set including described The interface call parameters needed for each third party's data-interface generation third party's data in third party's data-interface set;If The call parameters set includes some third party's data-interface generation third party in third party's data-interface set Interface call parameters needed for data, then be determined as target third party's data-interface by third party's data-interface;If institute State some the third party's data-interface generation third party not included in call parameters set in third party's data-interface set Interface call parameters needed for data, show that the request of data side can not access third party's data-interface.
It should be noted that at least one third party's data-interface in third party's data-interface set is the mesh Third party's data-interface is marked, i.e., includes at least target third party's data-interface in described third party's data-interface set.
S204, obtain needed for target third party data-interface generation third party's data from the call parameters set Interface call parameters, and the interface call parameters are encapsulated into interface call request.
Wherein, the interface call request is used to indicate third party's data-interface according to interface call parameters generation the Tripartite's data.
It is understood that when multiple third party's data-interfaces in third party's data-interface set are the target the 3rd During square data-interface, the interface needed for different third party's data-interfaces can be called ginseng by third party's data access platform Number is encapsulated into different interface access requests.
S205, be that the target third party data-interface distributes thread.
Wherein, the number of the thread is determined by the interface number of the target third party data-interface.That is, institute It can be each target third party data-interface individually one thread of distribution to state third party's data access platform.
Alternatively, when third party's data-interface set includes multiple target third party data-interfaces, and the line It is the target third party data-interface described in third party's data access platform execution when the number of journey reaches default value Distribution thread can specifically include:Determine the interface priority of the multiple target third party data-interface;According to interface priority The order of level from high to low, thread is distributed for the multiple target third party data-interface.Wherein, the default value can root Determined according to the computing capability of system.
Wherein, interface priority list, the interface priority list are stored with third party's data access platform Include accessing the interface priority of each third party's data-interface of third party's data access platform.So as to described the Tripartite's data access platform can determine that the multiple target third party data connect by inquiring about the interface priority list The interface priority of mouth.
S206, by the thread of distribution send the interface call request to the target third party data-interface.
Wherein, the interface call request is specifically used for indicating the target third party data-interface according to the interface tune The interface call parameters included with request generate third party's data.
In embodiments of the present invention, third party's data are that the interface in third party's data-interface set generates Air control data.Wherein, the air control data can include but is not limited to blacklist data, overdue information, loan information, according to disappearing Credit scoring that charge information, phone are obtained in information such as net durations etc., it is not limited in the embodiment of the present invention.
It should be noted that different third party's data-interfaces can generate identical or different air control data.Citing comes Say, it is described as a kind of optional embodiment when first interface and second interface are the target third party data-interface First interface can generate blacklist data, and the second interface can generate credit scoring;As another optional implementation Example, the first interface and second interface can generate blacklist data.
S207, receive third party's data from the target third party data-interface.
When the target third party data-interface generates third party's data, third party's data sending of generation can be given Third party's data access platform.
S208, by third party's data storage into initialized data base, and by third party's data sending to described Request of data side.
When third party's data access platform receives third party's data of the target third party data-interface transmission When, the third party's data received can be stored into initialized data base (such as air control database).Also, third party's number Third party's data can be returned to institute by the third party's data received in a manner of either synchronously or asynchronously according to access platform State request of data side.
Specifically, if the target third party data-interface is first kind interface, then third party's data access Third party's data can be synchronously sent to by platform when the third party's data that will be received are stored into initialized data base The request of data side.
If the target third party data-interface is the second class interface, then third party's data access platform is being incited somebody to action , can be by third party's data in an asynchronous manner after the third party's data received are stored into initialized data base It is sent to the request of data side.Specifically, third party's data access platform can by the initialized data base from Third party's data timing Batch sending that two class interfaces arrive gives the request of data side.That is, third party's number According to access platform can periodically by the initialized data base from the second class interface to third party's data sending give The request of data side.Specifically, third party's data access platform can periodically by the initialized data base from Second class interface to third party's data to extract, change, load (Extraction-Transformation- Loading, ETL) mode be sent to the request of data side.
It should be noted that when third party's data access platform is received from the target third party data-interface Third party's data when, it may be determined that receive third party's data with sending the interface call request to the target the The time difference of tripartite's data-interface.Further, when the time difference being less than preset duration, third party's data access is put down The target third party data-interface can be determined as first kind interface by platform.When the time difference being more than preset duration, institute The second class interface can be determined as by the target third party data-interface by stating third party's data access platform.Wherein, it is described pre- If duration can be determined according to time requirement of the request of data side for service response.
It should also be noted that, when third party's data access platform calls third party's data-interface failure (or time-out) When, the calling task of failure (or time-out) can be placed in default failure pond.Further, third party's data access Platform can use the thread specified to go to handle the calling task in the failure pond.Wherein, the thread specified is described The thread that third party's data access platform is reserved for the failure pond, i.e., the described thread specified is dedicated for the calling failure Calling task in pond.In general, the calling task of failure (or time-out) all can be than relatively time-consuming., can by setup failed pond Calling task to avoid failure (or time-out) has an impact the performance of normal calling task.
It should also be noted that, third party's data access platform can be to the access request day of all request of data sides The calling daily record of will and all third party's interfaces is registered.Alternatively, third party's data access platform can also be regular Clear up the daily record data of registration.
In embodiments of the present invention, request of data side please by the access of common interface (i.e. preset internal interface) transmission interface Ask and docked with third party's data access platform to request of data side in third party's data access platform, can be simplified to greatest extent Mode.Also, whole interface calling procedure is based on parametrization realization and calls automatically, and to data, requesting party has masked third party Data-interface is reached the standard grade or offline difference, after new third party's data-interface is linked into third party's data access platform, Request of data side can quickly access third party's data-interface.
The embodiment of the present invention also provides a kind of third party's data access platform, and third party's data access platform includes using In the module for performing the method shown in the application Fig. 1.Specifically, Fig. 3 is referred to, is the provided in an embodiment of the present invention a kind of 3rd Number formulary according to access platform structure diagram.Third party's data access platform as shown in Figure 3 can include:Receiving module 301, Determining module 302 and calling module 303.Wherein,
The receiving module 301, for by preset internal interface, receiving the interface access from request of data side please Ask.
The determining module 302, for obtaining the channel mark of the request of data side from the interface access request, And determine the corresponding third party's data-interface set of the channel mark.
The calling module 303, for distributing third party's data in third party's data-interface set described in thread dispatching Interface.
It should be noted that the specific workflow of third party's data access platform provided in an embodiment of the present invention refer to Method flow part provided in an embodiment of the present invention, details are not described herein.
In embodiments of the present invention, request of data side please by the access of common interface (i.e. preset internal interface) transmission interface Ask and docked with third party's data access platform to request of data side in third party's data access platform, can be simplified to greatest extent Mode, third party's data-interface is masked to data requesting party and is reached the standard grade or offline difference, when new third party's data connect Mouth is linked into after third party's data access platform, and request of data side can quickly access third party's data-interface.
The embodiment of the present invention also provides another third party's data access platform, and third party's data access platform includes For performing the module of the method shown in the application Fig. 2.Specifically, Fig. 4 is referred to, is provided in an embodiment of the present invention a kind of The structure diagram of tripartite's data access platform.Third party's data access platform as shown in Figure 4 can include:Receiving module 401st, acquisition module 402, determining module 403, package module 404, calling module 405, memory module 406 and sending module 407. Wherein,
The receiving module 401, for by preset internal interface, receiving the interface access from request of data side please Ask.
Alternatively, the receiving module 401 performs described by preset internal interface, receives connecing from request of data side During mouth access request, specifically for by preset internal interface, being received in a manner of instant messaging communication from request of data side Interface access request;Alternatively, by preset internal interface, received in a manner of postponing message communication from request of data side Interface access request.
The acquisition module 402, for obtaining the channel mark of the request of data side from the interface access request.
The determining module 403, for determining the corresponding third party's data-interface set of the channel mark.
The determining module 403, is additionally operable to the receiving time phase when the interface access request from multiple request of data sides Meanwhile determine the system priority of the multiple request of data side.
The acquisition module 402, is additionally operable to the order from high to low according to system priority, from the multiple request of data Channel mark is obtained in the interface access request of side.
The acquisition module 402, is additionally operable to obtain call parameters set from the interface access request.
The determining module 403, is additionally operable to according to the call parameters set, from third party's data-interface set Determine target third party's data-interface, wherein, the call parameters set includes the target third party data-interface life Into the interface call parameters needed for third party's data.
The acquisition module 402, is additionally operable to obtain the target third party data-interface from the call parameters set Generate the interface call parameters needed for third party's data.
The package module 404, for the interface call parameters to be encapsulated into interface call request.
The calling module 405, for distributing third party's data in third party's data-interface set described in thread dispatching Interface.
Alternatively, the calling module 405 is performed in third party's data-interface set described in the distribution thread dispatching During third party's data-interface, specifically for distributing thread for the target third party data-interface;By the thread of distribution to institute Target third party's data-interface transmission interface call request is stated, the interface call request is used to indicate the target third party number According to interface third party's data are generated according to the interface call parameters.
The receiving module 401, is additionally operable to receive third party's data from the target third party data-interface.
The memory module 406, third party's data for the receiving module 401 to be received are stored to preset data In storehouse.
The sending module 407, for third party's data sending for receiving the receiving module 401 to the data Requesting party.
The determining module 403, is additionally operable to determine to receive third party's data with sending the interface call request to institute State the time difference of target third party's data-interface.
The determining module 403, is additionally operable to when the time difference being less than preset duration, by the target third party data Interface is determined as first kind interface.
The determining module 403, is additionally operable to when the time difference being more than preset duration, by the target third party data Interface is determined as the second class interface.
Alternatively, the sending module 407 performs the third party's data sending for receiving the receiving module 401 During to the request of data side, specifically for when the target third party data-interface is first kind interface, when the storage When module 406 performs the third party's data storage for receiving the receiving module 401 into initialized data base, by described in Third party's data are synchronously sent to the request of data side.
Alternatively, the sending module 407 performs the third party's data sending for receiving the receiving module 401 During to the request of data side, specifically for periodically by the initialized data base from the second class interface to the 3rd The mode that number formulary is extracted, changed, loading according to this is sent to the request of data side.
It should be noted that the specific workflow of third party's data access platform provided in an embodiment of the present invention refer to Method flow part provided in an embodiment of the present invention, details are not described herein.
In embodiments of the present invention, request of data side please by the access of common interface (i.e. preset internal interface) transmission interface Ask and docked with third party's data access platform to request of data side in third party's data access platform, can be simplified to greatest extent Mode.Also, whole interface calling procedure is based on parametrization realization and calls automatically, and to data, requesting party has masked third party Data-interface is reached the standard grade or offline difference, after new third party's data-interface is linked into third party's data access platform, Request of data side can quickly access third party's data-interface.
It is the schematic block diagram of another third party's data access platform provided in an embodiment of the present invention referring to Fig. 5.Such as figure Third party's data access platform in the present embodiment shown in 5 can include:One or more processors 501, one or more Input equipment 502, one or more output equipments 503 and memory 504.The processor 501, input equipment 502, output are set Connected for 503 and memory 504 by the bus 505.The memory 504 is used to store computer program, the calculating Machine program includes programmed instruction.
Specifically, the processor 501 is arranged to call described program instruction to perform:
By preset internal interface, the interface access request from request of data side is received;
The channel mark of the request of data side is obtained from the interface access request, and determines the channel mark pair The third party's data-interface set answered;
Distribute third party's data-interface in third party's data-interface set described in thread dispatching.
Alternatively, the processor 501 is arranged to call described program instruction to perform the distribution thread dispatching institute Specifically performed when stating third party's data-interface in third party's data-interface set:
Target third party's data-interface is determined from third party's data-interface set, and is the target third party Data-interface distributes thread;
By the thread of distribution to the target third party data-interface transmission interface call request, the interface calls please Ask for indicating that the target third party data-interface generates third party's data according to interface call parameters.
Alternatively, the processor 501 is arranged to call described program instruction execution described from third party's number According to determining specifically to perform during target third party's data-interface in set of interfaces:
Call parameters set is obtained from the interface access request;
According to the call parameters set, determine that target third party's data connect from third party's data-interface set Mouthful, wherein, the call parameters set includes the interface needed for target third party data-interface generation third party's data Call parameters.
Alternatively, the processor 501 is arranged to call described program instruction to perform the thread by distribution Also performed before to the target third party data-interface transmission interface call request:
Connecing needed for target third party data-interface generation third party's data is obtained from the call parameters set Mouth call parameters, and the interface call parameters are encapsulated into interface call request.
Alternatively, the processor 501 is arranged to call described program instruction also to perform:
Receive third party's data from the target third party data-interface;
When the target third party data-interface is first kind interface, by third party's data storage to preset data In storehouse, and third party's data are synchronously sent to the request of data side;
When the target third party data-interface is the second class interface, by third party's data storage to preset data In storehouse, and third party's data in the initialized data base are sent to the request of data in a manner of extracting, change, load Side.
Alternatively, the processor 501 is arranged to call described program instruction also to perform:
Determine that receive third party's data connects with sending the interface call request to the target third party data The time difference of mouth;
When the time difference being less than preset duration, the target third party data-interface is determined as first kind interface;
When the time difference being more than preset duration, the target third party data-interface is determined as the second class interface.
Alternatively, the processor 501 is arranged to call described program instruction also to perform:
When the receiving time of the interface access request from multiple request of data sides is identical, determine that the multiple data please The system priority for the side of asking;
According to the order of system priority from high to low, the interface access request of the multiple request of data side is responded.
Alternatively, the processor 501 is arranged to call and is connect described in described program instruction execution by preset inside Mouthful, specifically performed when receiving the interface access request from request of data side:
By preset internal interface, the interface access from request of data side is received in a manner of instant messaging communication please Ask;Alternatively,
By preset internal interface, the interface access from request of data side is received in a manner of postponing message communication please Ask.
It should be appreciated that in embodiments of the present invention, the processor 501 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
The input equipment 502 can include Trackpad, fingerprint collecting sensor (be used for gather user finger print information and The directional information of fingerprint), microphone etc., the output equipment 503 can include display (liquid crystal display (Liquid Crystal Display, LCD) etc.), loudspeaker etc..
The memory 504 can include read-only storage (Read-Only Memory, ROM) and random access memory (Random Access Memory, RAM), and provide computer program and data to the processor 501.The memory 504 a part of can also include nonvolatile RAM.For example, the memory 504 can be with storage device The information of type.
In the specific implementation, the processor 501, input equipment 502 and output equipment 503 described in the embodiment of the present invention can To perform the implementation of the interface call method shown in the application Fig. 1 or Fig. 2, details are not described herein.
In embodiments of the present invention, the processor 501 calls the programmed instruction being stored in the memory 504, can In a manner of simplifying request of data side to greatest extent and be docked with third party's data access platform.Also, whole interface called Journey be based on parametrization realize it is automatic call, third party's data-interface has been masked to data requesting party and has been reached the standard grade or offline difference Different, after new third party's data-interface is linked into third party's data access platform, request of data side can quickly access Tripartite's data-interface.
A kind of computer-readable recording medium, the computer-readable recording medium are also provided in an embodiment of the present invention Computer program is stored with, the computer program includes programmed instruction, and the processor is arranged to call the journey Sequence instructs, and performs the interface call method shown in the application Fig. 1 or Fig. 2.
The computer-readable recording medium can be third party's data access platform described in foregoing any embodiment Internal storage unit, such as the hard disk or memory of third party's data access platform.The computer-readable recording medium can also It is the grafting being equipped with the External memory equipment of third party's data access platform, such as third party's data access platform Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also both include third party's data access The internal storage unit of platform also includes External memory equipment.The computer-readable recording medium is used to store the computer Other programs and data needed for program and third party's data access platform.The computer-readable recording medium may be used also For temporarily storing the data that has exported or will export.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

  1. A kind of 1. interface call method, applied to third party's data access platform, it is characterised in that the described method includes:
    By preset internal interface, the interface access request from request of data side is received;
    The channel mark of the request of data side is obtained from the interface access request, and determines that the channel mark is corresponding Third party's data-interface set;
    Distribute third party's data-interface in third party's data-interface set described in thread dispatching.
  2. 2. according to the method described in claim 1, it is characterized in that, third party's data-interface collection described in the distribution thread dispatching Third party's data-interface in conjunction, including:
    Target third party's data-interface is determined from third party's data-interface set, and is the target third party data Interface assignment thread;
    Used by the thread of distribution to the target third party data-interface transmission interface call request, the interface call request In the instruction target third party data-interface third party's data are generated according to interface call parameters.
  3. 3. according to the method described in claim 2, it is characterized in that, described determine from third party's data-interface set Target third party's data-interface, including:
    Call parameters set is obtained from the interface access request;
    According to the call parameters set, target third party's data-interface is determined from third party's data-interface set, Wherein, the interface that the call parameters set is included needed for target third party data-interface generation third party's data calls Parameter;
    In the thread by distribution to before the target third party data-interface transmission interface call request, the method Further include:
    The interface tune needed for target third party data-interface generation third party's data is obtained from the call parameters set With parameter, and the interface call parameters are encapsulated into interface call request.
  4. 4. according to the method described in claim 2, it is characterized in that, the method further includes:
    Receive third party's data from the target third party data-interface;
    When the target third party data-interface is first kind interface, by third party's data storage to initialized data base In, and third party's data are synchronously sent to the request of data side;
    When the target third party data-interface is the second class interface, by third party's data storage to initialized data base In, and third party's data in the initialized data base are sent to the request of data in a manner of extracting, change, load Side.
  5. 5. according to the method described in claim 3, it is characterized in that, the method further includes:
    Determine to receive third party's data with sending the interface call request to the target third party data-interface Time difference;
    When the time difference being less than preset duration, the target third party data-interface is determined as first kind interface;
    When the time difference being more than preset duration, the target third party data-interface is determined as the second class interface.
  6. 6. according to the method described in claim 1, it is characterized in that, the method further includes:
    When the receiving time of the interface access request from multiple request of data sides is identical, the multiple request of data side is determined System priority;
    According to the order of system priority from high to low, the interface access request of the multiple request of data side is responded.
  7. 7. according to the method described in claim 1, it is characterized in that, described by preset internal interface, receiving please from data The interface access request for the side of asking, specifically includes:
    By preset internal interface, the interface access request from request of data side is received in a manner of instant messaging communication;Or Person,
    By preset internal interface, the interface access request from request of data side is received in a manner of postponing message communication.
  8. 8. a kind of third party's data access platform, it is characterised in that third party's data access platform includes being used to perform such as The module of claim 1 to 7 any one of them method.
  9. A kind of 9. third party's data access platform, it is characterised in that including processor, input equipment, output equipment and memory, The processor, input equipment, output equipment and memory are connected with each other, wherein, the memory is used to store computer journey Sequence, the computer program include programmed instruction, and the processor is arranged to call described program instruction, performs such as right It is required that 1 to 7 any one of them method.
  10. A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable storage medium is stored with computer program, The computer program includes programmed instruction, and described program instruction makes the processor perform such as right when being executed by a processor It is required that 1 to 7 any one of them method.
CN201711019062.7A 2017-10-27 2017-10-27 Interface call method, third party's data access platform and computer-readable medium Withdrawn CN108009026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711019062.7A CN108009026A (en) 2017-10-27 2017-10-27 Interface call method, third party's data access platform and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711019062.7A CN108009026A (en) 2017-10-27 2017-10-27 Interface call method, third party's data access platform and computer-readable medium

Publications (1)

Publication Number Publication Date
CN108009026A true CN108009026A (en) 2018-05-08

Family

ID=62051917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711019062.7A Withdrawn CN108009026A (en) 2017-10-27 2017-10-27 Interface call method, third party's data access platform and computer-readable medium

Country Status (1)

Country Link
CN (1) CN108009026A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819020A (en) * 2019-01-03 2019-05-28 福建天泉教育科技有限公司 Third-party platform based on configurationization logs in interconnection method, storage medium
CN110009476A (en) * 2019-02-21 2019-07-12 深圳市佰仟金融服务有限公司 A kind of method and apparatus handling application of making loans
CN111694495A (en) * 2020-06-18 2020-09-22 上海泛微网络科技股份有限公司 Method, system and storage medium for rapidly docking third-party APP platform
CN112612517A (en) * 2020-12-18 2021-04-06 深圳市思为软件技术有限公司 Data acquisition method and related equipment
CN112732417A (en) * 2019-10-28 2021-04-30 北京京东振世信息技术有限公司 Method and device for processing application request
CN112965745A (en) * 2021-04-01 2021-06-15 北京奇艺世纪科技有限公司 System access method, device, equipment and computer readable medium
CN114826865A (en) * 2022-05-11 2022-07-29 北京鼎泰智源科技有限公司 Tax-related data application interface docking method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327629B1 (en) * 1996-05-31 2001-12-04 International Business Machines Corporation Stored procedure universal calling interface
CN1869923A (en) * 2005-03-10 2006-11-29 微软公司 System data interfaces, related system architectures
CN102203736A (en) * 2011-05-20 2011-09-28 华为技术有限公司 Method and device for calling open application programming interface (openapi)
CN104866383A (en) * 2015-05-29 2015-08-26 北京金山安全软件有限公司 Interface calling method and device and terminal
CN106970838A (en) * 2017-05-15 2017-07-21 杭州时趣信息技术有限公司 The dispatching method and device of thread during a kind of search engine calling interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327629B1 (en) * 1996-05-31 2001-12-04 International Business Machines Corporation Stored procedure universal calling interface
CN1869923A (en) * 2005-03-10 2006-11-29 微软公司 System data interfaces, related system architectures
CN102203736A (en) * 2011-05-20 2011-09-28 华为技术有限公司 Method and device for calling open application programming interface (openapi)
CN104866383A (en) * 2015-05-29 2015-08-26 北京金山安全软件有限公司 Interface calling method and device and terminal
CN106970838A (en) * 2017-05-15 2017-07-21 杭州时趣信息技术有限公司 The dispatching method and device of thread during a kind of search engine calling interface

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819020A (en) * 2019-01-03 2019-05-28 福建天泉教育科技有限公司 Third-party platform based on configurationization logs in interconnection method, storage medium
CN109819020B (en) * 2019-01-03 2021-09-07 福建天泉教育科技有限公司 Third-party platform login and docking method based on configuration and storage medium
CN110009476A (en) * 2019-02-21 2019-07-12 深圳市佰仟金融服务有限公司 A kind of method and apparatus handling application of making loans
CN112732417A (en) * 2019-10-28 2021-04-30 北京京东振世信息技术有限公司 Method and device for processing application request
CN111694495A (en) * 2020-06-18 2020-09-22 上海泛微网络科技股份有限公司 Method, system and storage medium for rapidly docking third-party APP platform
CN112612517A (en) * 2020-12-18 2021-04-06 深圳市思为软件技术有限公司 Data acquisition method and related equipment
CN112612517B (en) * 2020-12-18 2024-04-05 深圳市思为软件技术有限公司 Data acquisition method and related equipment
CN112965745A (en) * 2021-04-01 2021-06-15 北京奇艺世纪科技有限公司 System access method, device, equipment and computer readable medium
CN112965745B (en) * 2021-04-01 2023-09-01 北京奇艺世纪科技有限公司 System access method, device, equipment and computer readable medium
CN114826865A (en) * 2022-05-11 2022-07-29 北京鼎泰智源科技有限公司 Tax-related data application interface docking method and device

Similar Documents

Publication Publication Date Title
CN108009026A (en) Interface call method, third party's data access platform and computer-readable medium
CN103530186B (en) Realize that camera applications support the method and system of multiposition storage
CN107231496B (en) Traffic processing method, service processing method, device and server
CN107241281B (en) Data processing method and device
CN110109752A (en) A kind of method for allocating tasks, device, electronic equipment and storage medium
CN107038645B (en) Service processing method, device and system and server
CN109992414A (en) A kind of task processing method and device based on thread pool
CN109726983A (en) Examine method for allocating tasks, device, computer equipment and storage medium
CN110247857B (en) Current limiting method and device
CN107818013A (en) A kind of application scheduling method thereof and device
CN106850242A (en) A kind of information processing method and device
CN108616668B (en) Method for monitoring dialing task, electronic device and computer readable storage medium
CN109600324A (en) Video communication method, device, computer equipment and storage medium
CN108520329B (en) Accurate automatic allocation method and device for second-hand house clients based on broker portrait
CN106528065A (en) Thread obtaining method and device
CN108241535B (en) Resource management method and device and server equipment
CN110221914A (en) Document handling method and device
CN204883904U (en) Multiwindow system of calling out numbers of lining up
CN110378680A (en) A kind of data processing method, device, storage medium and server
CN115439250A (en) Transaction request processing method and device, storage medium and electronic device
CN110704201A (en) Multimedia data sharing method and terminal equipment
CN105812203B (en) A kind of request message processing method and equipment
CN107704734A (en) A kind of recognition methods of user account and its equipment
CN110008283B (en) Data processing method and device based on data tag
US11303752B1 (en) Techniques for managing user transmission rates in a communications network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Maimaiti Mdt InfoTech Ltd, Shenzhen

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: Shenzhen Maimaiti Tesco Nationwide Financial Services Inc

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant after: Shenzhen Rongyimai Information Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant before: Maimaiti Mdt InfoTech Ltd, Shenzhen

WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180508