Base on gorequest to test webhook(Provide from Wechat)and send a post requsest
PS. This passage will not provision proxy, you may need a laddar or any other method to get the package.
1. Install gorequest
- We can use
go get
command to install this package.
$ go get github.com/parnurzeal/gorequest
2. Open a robot of Wechat or DingTalk
- This passage we use Wechat to test webhook.
- We can use phone to add a robot, DingTalk need set in PC platform.
PS. DingTalk now need security verify
- After we can get a url of webhook
- DingTalk need to set fliter or security, any details are in document of DingTalk api.
3. Create a request use Golang
Code: