1, the background
Most of the time, when we run software on the server and some business anomalies occur, we need to be timely reminded, or we need to use some time-consuming software, such as snatching tickets, snatching classes and swiping coupons. When the task is successfully run, we also need to timely send messages to ourselves to tell us the status. Options include: SMS, email, etc., SMS access is complex, and need to pay; Mail is not easy to access, and may not be received in a timely manner or viewed in a friendly way.
2. WxPusher wechat push service
Is there a good solution? The answer is yes, is directly sent to their own wechat, the message is timely, convenient to view, and also free. Here is a brief introduction to WxPusher wechat push service.
3. Function introduction
WxPusher wechat push service is a free and timely wechat message push service, powerful, good experience, easy access. Through API call, can be sent to their own wechat. For example, here is a test message I sent and received something like this:
You can also in the ** official function demo program ** to experience his function, I believe that if you need, will fall in love with him.
4. Access instructions
4.1. Create an application
Open the WxPusher WeChat push service background management address: wxpusher.zjiecode.com/admin, need not registered account, directly with WeChat sweep code can log in.
When you log in, you’ll be prompted to create an application, fill in the corresponding information, and create one.
The above must fill, that is, fill in what you push is what content, push is what name, it is ok.
4.2. Subscribe to the app
After the application is created, you can not directly push, you need to use the wechat to receive, click “application management” – “follow the application”, scan the application to subscribe to the TWO-DIMENSIONAL code, subscribe to the application, or you can not send a message.
4.3 Obtaining the UID
After subscribing, you will open a public account, click the menu below the public account, “my” – “my UID”, you can user to the user’s UID, like the following.
4.4 Send messages through the background
Then we can send messages, don’t have to write code, directly send a message in the background, opens the page of the background management: wxpusher.zjiecode.com/admin, find “news management” – “send a message”, fill in the UID just now.
Note that the UID sent must be concerned about the application.
4.5. Send messages through the API
Of course, the core business, or through HTTP calls to send a message, API interface documentation, you can refer to here: wxpusher.zjiecode.com/docs
POST Interface The POST interface is a fully functional interface and is recommended.
Content-Type:application/json
Address: wxpusher.zjiecode.com/api/send/me…
The request data is placed in the body with the following parameters:
{
"appToken":"AT_xxx"."content":"Happy Mid-Autumn Festival from Wxpusher!"."summary":"Message digest".// Message summary is displayed on wechat chat page or template message card. The length is limited to 100, and the content before the content can not be uploaded.
"contentType":1.// The content type 1 is text, the content type 2 is HTML, the content type 3 is markdown
"topicIds": [// Send topicId to target, is an array!! , that is, group sending. When using UIDS, single sending can not be sent.
123]."uids": [// Send the target's UID, which is an array. Note that you can fill in both uIDS and topicIds or only one of them.
"UID_xxxx"]."url":"http://wxpusher.zjiecode.com" // Original link, optional parameter
}
Copy the code
The official get method interface is also provided, which is relatively easy to call in the script. It is not introduced here, and you can check the official documentation for details.
5, summary
Here, a simple introduction to the WxPusher wechat push service, I feel this push is great, there is no big problem with the basic daily use, mainly is free, very fragrant.
Reprint please famous sources, this article from wxpusher.zjiecode.com/docs/#/ WxPusher website.