Python发送Websocket消息 - GoEasy PubSub

本节内容为Python实现GoEasy Rest接口发送消息, 使用时,可参阅Rest接口的详细介绍

Python

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 Host

杭州: rest-hangzhou.goeasy.io
新加坡: rest-singapore.goeasy.io

results matching ""

    No results matching ""