本节内容为Python实现GoEasy Rest接口发送消息, 使用时,可参阅Rest接口的详细介绍
appkey = "BC-xxxxxxxxx"
channel = "my_channel"
content = "Hello, GoEasy!"
data = {"appkey" : appkey, "channel" : channel, "content" : content}
url = "http(s)://<REST Host>/publish"
response = requests.post(url, data = data)
杭州: rest-hangzhou.goeasy.io
新加坡: rest-singapore.goeasy.io