Small micro-channel programs - stream api

The original 100 interfaces with the courier has change, can not be used on existing systems. See Express 100 provided api, to explore the use of small microcells program ends. A few are more appropriate: 1 Jump API (. Https://www.kuaidi100.com/openapi/api_jump.shtml ); 2 Cell Phone Lookup API (. Https://www.kuaidi100.com/openapi/mobileapi .shtml ).

First choose the most convenient jump api test applet end use web-view, but then found that the integrated third-party domain name to be added to the program of small business domain name, and domain name service server files require verification, there is no express authority server 100. To give up.

And then I want to use the phone queries api, in fact, express or jump to page 100 to show the same problem.

Re-thinking can save the query in the mouth of service termination results page html, by the end applet to request displayed on the page, after all, also eliminates the need to write their own styles. The same problem is still there, because the third-party pages are not static, but loaded by asynchronous vue, just crawl page source code. (Here there is definitely a correlation method can be achieved, being the first not to consider this direction.) Then think of to find this asynchronous request, the browser F12 to bring up the developer tools, select network

After time postman find a tool like trying to request to see the results, see if you can reproduce the results, the request parameters, adding several major (postid: express a single number; type: Express coding), and even then add the platform, token and temp, the results unfortunately, the results returned by each is different

Sometimes the results can be found, sometimes not, but does not express a single number input results. Express interface to construct 100 fail. By the way, set the headers attribute is relevant

所以只能找其他独立的物流api,通过百度,找到几个:快递鸟(http://www.kdniao.com),菜鸟物流云(https://cloud.cainiao.com)。有意思的是搜索菜鸟物流api,第一个弹出的是快递鸟,好策略,好title。

由于时间关系,初步看了下相关api,快递鸟和菜鸟物流云都是免费的,快递鸟的和快递100的类似,文档详细,还有demo可以下载。菜鸟物流云的没细看,但毕竟是阿里的,应该不至于差。

本文记录思路,仅供参考,应该问题不大。

 

Guess you like

Origin www.cnblogs.com/q251458060/p/11285765.html