CN102479218A - Method and server for express query based on API (Application Program Interface) - Google Patents

Method and server for express query based on API (Application Program Interface) Download PDF

Info

Publication number
CN102479218A
CN102479218A CN2010105663987A CN201010566398A CN102479218A CN 102479218 A CN102479218 A CN 102479218A CN 2010105663987 A CN2010105663987 A CN 2010105663987A CN 201010566398 A CN201010566398 A CN 201010566398A CN 102479218 A CN102479218 A CN 102479218A
Authority
CN
China
Prior art keywords
result
data
coupling
api interface
parameter
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
CN2010105663987A
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 JINDIE YOUSHANG E-BUSINESS SERVICE Co Ltd
Original Assignee
SHENZHEN JINDIE YOUSHANG E-BUSINESS SERVICE 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 SHENZHEN JINDIE YOUSHANG E-BUSINESS SERVICE Co Ltd filed Critical SHENZHEN JINDIE YOUSHANG E-BUSINESS SERVICE Co Ltd
Priority to CN2010105663987A priority Critical patent/CN102479218A/en
Publication of CN102479218A publication Critical patent/CN102479218A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method and server for express query based on an API (Application Program Interface). The method comprises the following steps of: setting and starting the API; inputting a keyword and/or a parameter through the API; searching an aggregation database according to the input keyword and/or the input parameter, and matching the keyword and/or the parameter with the data in the aggregation database, thereby obtaining the matching result; and outputting the matching result via the API. All data sources are aggregated and uniformly processed into a uniform format, and the result of smart matching is output via the API, so that express data can be quickly queried in batches.

Description

Carry out the method and the server of express delivery inquiry through api interface
Technical field
The present invention relates to field of computer technology, specifically is method and the server that carries out the express delivery inquiry through api interface.
Background technology
As adopt the manual website of going up of traditional approach to carry out the express delivery inquiry, then: need different one by one express delivery website searches, be difficult to find; Be distributed to the different web sites search, trivial operations, management inconvenience; Can't realize unified informationization processing; Whole search efficiency is very low.Also can't realize simultaneously inquiry in batches.
Summary of the invention
Fundamental purpose of the present invention provides a kind of method and server that carries out the express delivery inquiry through api interface, to carry out the inquiry of fast delivery data in batches and fast.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of method of carrying out the express delivery inquiry through api interface, it comprises:
Be provided with and the startup api interface;
Through said api interface input key word and/or parameter;
According to the key word and/or the parameter search polymerized data base of input, and the data in said key word and/or parameter and the said polymerized data base are mated, obtain the result of said coupling;
Export the result of said coupling from said api interface.
Preferably, said key word and/or parameter search polymerized data base according to input, further comprise before:
Search for each data source;
Through the regular principle of data, with said each data source regular be the polymerized data base of consolidation form.
Preferably, saidly export the result of said coupling, specifically comprise: the result who exports the said coupling of multiple form from said api interface from said api interface.
Preferably, saidly export the result of said coupling, afterwards, further comprise from said api interface:
The result who shows said coupling.
The present invention also provides a kind of server, and it comprises:
Interface is provided with the unit, is used for being provided with and starting api interface;
Information input unit is used for through said api interface input key word and/or parameter;
The Data Matching unit is used for key word and/or parameter search polymerized data base according to input, and the data in said key word and/or parameter and the said polymerized data base are mated, and obtains the result of said coupling;
Output unit as a result is used for exporting from said api interface the result of said coupling.
Preferably, said server also comprises:
The data search unit is used to search for each data source;
The data aggregate unit is used for through the regular principle of data, with said each data source regular be the polymerized data base of consolidation form.
Preferably, said output unit as a result is used for exporting from said api interface the result of the said coupling of multiple form.
Preferably, said server also comprises: display unit as a result is used to show the result of said coupling.
The technical scheme of embodiment of the present invention; Has following beneficial effect: method provided by the invention and server; Through each data source is carried out polymerization; And be unified into unified format, and the result after the intelligence coupling is exported through api interface, can batch and the inquiry of carrying out fast delivery data fast.
Description of drawings
The method flow diagram that Fig. 1 provides for the embodiment of the invention;
Another process flow diagram of the method that Fig. 2 provides for the embodiment of the invention;
The structural representation of the server that Fig. 3 provides for the embodiment of the invention;
Another structural representation of the server that Fig. 4 provides for the embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will combine embodiment, further specify with reference to accompanying drawing.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention provides a kind of method of carrying out the express delivery inquiry through api interface, and as shown in Figure 1, the method comprising the steps of:
S110, setting also start api interface;
Wherein: said API (Application Programming Interface; API) interface; Be some predefined functions; Purpose provide application program and developer based on certain software or hardware visiting the ability of one group of routine, and need not to visit source code, or understand the details of internal work mechanism.Needs and rule according to follow-up data aggregate are provided with this api interface.
S120, through said api interface input key word and/or parameter;
This key word and parameter are at least wherein a kind of; In the express delivery inquiry; Said key word and parameter are for the code (fuzzy query) of the odd numbers of inquiry express delivery, inquiry express company or meet the data of certain condition, as toward certain city or the city of the express delivery of certain point, place as the parameter of inquiry.
S130, according to the key word and/or the parameter search polymerized data base of input, and the data in said key word and/or parameter and the said polymerized data base are mated, obtain the result of said coupling;
Each data in above-mentioned key word or the parameter polymerized data base are mated.
S140, export the result of said coupling from said api interface.In the present embodiment, this step S140 specifically comprises: export the result of the said coupling of multiple form from said api interface, and can carry out encryption through Key (key).As: support forms such as XML, text, HTML, JSON, can be used for several scenes such as demonstration, data statistics.
The method that provides based on the foregoing description, in other embodiment, said step S130, according to the key word and/or the parameter search polymerized data base of input, further comprises before:
S128, search for each data source; In the present embodiment, each data source is exactly the database of each express company,
S129, through the regular principle of data, with said each data source regular be the polymerized data base of consolidation form.
Because the data layout disunity in the database of each company, so need each data source unification be that the polymerized data base of unified format, the data in this polymerized data base are the set of the data behind each data source consolidation form.
Among above-mentioned each embodiment, behind the result of output coupling, also comprise step: the result who shows said coupling.The display screen through server or the display screen of terminal computer show the result of said coupling.
The method that the foregoing description provides through each data source is carried out polymerization, and is unified into unified format, and the result after the intelligence coupling is exported through api interface, can be in batches and the inquiry of carrying out fast delivery data fast.
The embodiment of the invention also provides a kind of server, and is as shown in Figure 3, and this server comprises:
Interface is provided with unit 310, is used for being provided with and starting api interface;
Information input unit 320 is used for through said api interface input key word and/or parameter;
Data Matching unit 330 is used for key word and/or parameter search polymerized data base according to input, and the data in said key word and/or parameter and the said polymerized data base are mated, and obtains the result of said coupling;
Output unit 340 as a result, are used for exporting from said api interface the result of said coupling.Concrete, said output unit as a result 340 is used for exporting from said api interface the result of the said coupling of multiple form.
Based on the server that the foregoing description provides, as shown in Figure 4 in other embodiment, said server also comprises:
Data search unit 328 is used to search for each data source;
Data aggregate unit 329 is used for through the regular principle of data, with said each data source regular be the polymerized data base of consolidation form.
Based on the server that the foregoing description provides, in other embodiment, said server also comprises: display unit as a result is used to show the result of said coupling.
The server that the foregoing description provides through each data source is carried out polymerization, and is unified into unified format, and the result after the intelligence coupling is exported through api interface, can be in batches and the inquiry of carrying out fast delivery data fast.
More than be merely preferred embodiment of the present invention,, all any modifications of within spirit of the present invention and principle, being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention not in order to restriction the present invention.

Claims (8)

1. a method of carrying out the express delivery inquiry through api interface is characterized in that, comprising:
Be provided with and the startup api interface;
Through said api interface input key word and/or parameter;
According to the key word and/or the parameter search polymerized data base of input, and the data in said key word and/or parameter and the said polymerized data base are mated, obtain the result of said coupling;
Export the result of said coupling from said api interface.
2. method according to claim 1 is characterized in that, said key word and/or parameter search polymerized data base according to input, further comprise before:
Search for each data source;
Through the regular principle of data, with said each data source regular be the polymerized data base of consolidation form.
3. method according to claim 1 is characterized in that, saidly exports the result of said coupling from said api interface, specifically comprises: the result who exports the said coupling of multiple form from said api interface.
4. like claim 1 or 3 said methods, it is characterized in that, saidly export the result of said coupling, afterwards, further comprise from said api interface:
The result who shows said coupling.
5. a server is characterized in that, comprising:
Interface is provided with the unit, is used for being provided with and starting api interface;
Information input unit is used for through said api interface input key word and/or parameter;
The Data Matching unit is used for key word and/or parameter search polymerized data base according to input, and the data in said key word and/or parameter and the said polymerized data base are mated, and obtains the result of said coupling;
Output unit as a result is used for exporting from said api interface the result of said coupling.
6. like the said server of claim 5, it is characterized in that, also comprise:
The data search unit is used to search for each data source;
The data aggregate unit is used for through the regular principle of data, with said each data source regular be the polymerized data base of consolidation form.
7. like the said server of claim 5, it is characterized in that said output unit as a result is used for exporting from said api interface the result of the said coupling of multiple form.
8. like claim 5 or 7 said servers, it is characterized in that, also comprise: display unit as a result is used to show the result of said coupling.
CN2010105663987A 2010-11-30 2010-11-30 Method and server for express query based on API (Application Program Interface) Pending CN102479218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105663987A CN102479218A (en) 2010-11-30 2010-11-30 Method and server for express query based on API (Application Program Interface)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105663987A CN102479218A (en) 2010-11-30 2010-11-30 Method and server for express query based on API (Application Program Interface)

Publications (1)

Publication Number Publication Date
CN102479218A true CN102479218A (en) 2012-05-30

Family

ID=46091866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105663987A Pending CN102479218A (en) 2010-11-30 2010-11-30 Method and server for express query based on API (Application Program Interface)

Country Status (1)

Country Link
CN (1) CN102479218A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104766189A (en) * 2014-01-07 2015-07-08 携程计算机技术(上海)有限公司 Logistics information processing system and method
WO2017041681A1 (en) * 2015-09-08 2017-03-16 华为技术有限公司 Method and terminal for acquiring and presenting information
CN106844372A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of logistics information querying method and device
CN111915249A (en) * 2020-07-20 2020-11-10 江苏云柜网络技术有限公司 Express delivery service management method, device, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641639A (en) * 2004-01-12 2005-07-20 英业达股份有限公司 Multi data base query system and method thereof
JP2006139763A (en) * 2004-11-11 2006-06-01 Microsoft Corp Application programming interface for text mining and searching
US20090080408A1 (en) * 2007-09-20 2009-03-26 Intel Corporation Healthcare semantic interoperability platform
CN101799826A (en) * 2010-03-04 2010-08-11 中国电子科技集团公司第二十八研究所 Networking data sharing system and method based on virtual view

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641639A (en) * 2004-01-12 2005-07-20 英业达股份有限公司 Multi data base query system and method thereof
JP2006139763A (en) * 2004-11-11 2006-06-01 Microsoft Corp Application programming interface for text mining and searching
US20090080408A1 (en) * 2007-09-20 2009-03-26 Intel Corporation Healthcare semantic interoperability platform
CN101799826A (en) * 2010-03-04 2010-08-11 中国电子科技集团公司第二十八研究所 Networking data sharing system and method based on virtual view

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104766189A (en) * 2014-01-07 2015-07-08 携程计算机技术(上海)有限公司 Logistics information processing system and method
WO2017041681A1 (en) * 2015-09-08 2017-03-16 华为技术有限公司 Method and terminal for acquiring and presenting information
CN106844372A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of logistics information querying method and device
CN111915249A (en) * 2020-07-20 2020-11-10 江苏云柜网络技术有限公司 Express delivery service management method, device, system and storage medium

Similar Documents

Publication Publication Date Title
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
CN108292323B (en) Database operations using metadata of data sources
CN110737659A (en) Graph data storage and query method, device and computer readable storage medium
CN105183912B (en) Abnormal log determines method and apparatus
CN110168522B (en) Maintaining data lineage to detect data event
WO2019076062A1 (en) Function page customization method and application server
JP2017535842A (en) Simplify calling the import procedure to transfer data from the data source to the data target
US20120078877A1 (en) Multi-source searching in a data driven application
CN104536987A (en) Data query method and device
CN112256772A (en) Data service method, device and readable storage medium
CN112925954A (en) Method and apparatus for querying data in a graph database
CN102479218A (en) Method and server for express query based on API (Application Program Interface)
CN112988770A (en) Method and device for updating serial number, electronic equipment and storage medium
CN111723077A (en) Data dictionary maintenance method and device and computer equipment
CN106062739A (en) Dynamic stream computing topology
CN104484413A (en) Method and device for obtaining searching results
CN114064925A (en) Knowledge graph construction method, data query method, device, equipment and medium
CN109947736B (en) Method and system for real-time computing
JP6621444B2 (en) Data generation method and apparatus based on inquiry content
US20130318133A1 (en) Techniques to manage universal file descriptor models for content files
CN108959294B (en) Method and device for accessing search engine
CN104813304A (en) Identifying shared content stored by a service
US10599728B1 (en) Metadata agent for query management
CN102799649B (en) Intelligent input prompting device and intelligent input prompting method
CN111221917A (en) Intelligent partition storage method and device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120530