Check if the API is working regularly. Writen in golang
{
"apiKey": "your YunPian apikay",
"phones":["phone1", "phone2"],
"smsPrefix": "your yun pian sms prefix config",
"testItem":[
{
"name":"api-test",
"url":"/api/to/test",
"httpProto": "https",
"requestTimeout": "20s",
"serverList":{
"0.0.0.0": "server-1",
"baidu.com": "domain-2"
},
"interval": "20s"
}
]
}
go run apiTest.go
go build -o API-monitor apiTest.go