mirror of
https://github.com/hanzoai/notify.git
synced 2026-10-30 15:04:32 +00:00
* feat: support cu cloud smn service * feat: fix build err * feat: promote code format (cherry picked from commit 76a83e8a961239e6f33a4a664ea96c5c87db7616)
539 B
539 B
CuCloud
CUCloud is the cloud service brand of China Unicom
Usage
- Create a pair of accessKey and accessKeySecret in
https://console.cucloud.cn/console/uiam/user/${your_id}/info - Create a topic
// define accessKey and accessKeySecret
accessKey := ""
secretKey := ""
// create client
cuCloudClient := New(accessKey, secretKey, "topic_name", "message title", "cloud region code", "account id", "notify type")
// send message
err := cuCloudClient.Send(context.Background(), "", "content")