In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you "how to achieve express query in the development of Wechat". The content is simple and clear. I hope it can help you solve your doubts. Here, let the editor lead you to study and learn how to achieve express query in the development of Wechat.
I. request data
Express 100 provides express inquiry interface.
By sending a request to the specified address, you can return the tracking results in formats such as JSON, XML, etc.
3. Request address
Api.kuaidi100.com/api?id= [] & com= [] & nu= [] & valicode= [] & show= [0 | 1 | 2 | 3] & muti= [0 | 1] & order= [desc | asc]
(when using, please replace the square brackets in the above address with the corresponding values below)
4. Input parameters
Whether the name type must describe whether idString is an identity authorization key. Please apply via the express query API (case-sensitive). ComString is the express company code to be queried, which does not support Chinese. For the corresponding company code, please see
"description of express companies and parameters supported by API URL" and "description of international express and parameters supported".
If you can not find the company you need, please send an email to kuaidi@kingdee.com (case insensitive) nuString is the express order number to query, please do not carry special symbols, Chinese (case insensitive) valicodeString is a disused field, meaningless, please ignore. ShowString is the return type:
0: returns the json string
1: returns the xml object
2: return the html object
3: returns the text text.
If left empty, the json string is returned by default. MutiString is the number of messages returned:
1: returns the complete information of multiple lines
0: only one line of information is returned.
If left empty, multiple rows are returned by default. OrderString is the sort:
Desc: new to old by time
Asc: arranged from old to new in time.
If you leave it empty, it returns the reverse order by default (case insensitive) 5. Return the result field name field meaning com logistics company number nu logistics order number time the time of each tracking message context the description of each tracking message the current status of the state express order:
0: in transit, that is, the goods are in transit
1: the goods have been collected by the express delivery company and the first tracking message has been generated.
2: difficult. There is something wrong with the delivery of the goods.
3: sign for it. The recipient has signed for it.
4: return, that is, the goods are returned due to the user's refusal, overrun and other reasons, and the sender has signed for receipt.
5: delivery, that is, delivery is being carried out in the same city.
6: return, the goods are on their way back to the sender
This status is still in the process of improvement. If you have more parameter requirements, you are welcome to email to kuaidi@kingdee.com. Status query result status:
0: the logistics order has no result for the time being
1: query succeeded
2: if there is an exception in the interface, message is meaningless. Ignore the meaninglessness of condition, ignore the meaninglessness of ischeck, and ignore 6. Return the example
JSON format
{"message": "ok", "status": "1", "state": "3", "data": [{"time": "2012-07-07 13:35:14", "context": "customer has signed for it"}, {"time": "2012-07-07 09:10:10", "context": "leaving [Beijing Shijingshan Business Hall] delivery, courier [Wen] Telephone []}, {"time": "2012-07-06 19:46:38", "context": "arriving at [Beijing Shijingshan Business Hall]"}, {"time": "2012-07-06 15:22:32", "context": "leaving [Beijing Shijingshan Business Hall] delivery, courier [Wen] Phone [] "}, {" time ":" 2012-07-06 15:05:00 "," context ":" arrive at [Beijing Shijingshan Business Hall] "}, {" time ":" 2012-07-06 13:37:52 "," context ":" leave [Beijing _ City transfer Station] to [Beijing Shijingshan Business Hall] "}, {" time ":" 2012-07-06 12:54:41 " "context": "arriving at [Beijing _ intercity transfer station]", {"time": "2012-07-06 11:11:03", "context": "leaving [Beijing Operation Center stationing team] to [Beijing _ Tongcheng Transit Station]"}, {"time": "2012-07-06 10:43:21", "context": "arriving [Beijing Operation Center stationing team]"} {"time": "2012-07-05 21:18:53", "context": "leave [Fujian _ Xiamen Branch] to [Beijing Operation Center _ Aviation]"}, {"time": "2012-07-05 20:07:27", "context": "picked up" Arrive at [Fujian _ Xiamen Branch] "}]}
At the same time, express 100 provides the query interface of Wap version
Wap.kuaidi100.com/
Its URL request is
Http://wap.kuaidi100.com/wap_result.jsp?rand=35447&id=shentong&fromWeb=null&postid=568629598688&sub=%E6%9F%A5%E8%AF%A
The parameters are as follows:
Rand random number id express company name, where shentong is whether Shentong fronweb submits the postid delivery number from web, here is a fixed field of 568629598688sub, and% E6%9F%A5%E8%AF%A2 is decoded to query two Chinese characters.
Therefore, we take the above as the standard to construct the query request.
Second, program realization
Core code
II. Demonstration of the effect
The above is all the content of this article "how to realize express query in Wechat development". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.