点击页面右上角注册,并登录后台管理你的相关ID。
下载客户端,接收Alertover通知
添加组织然后邀请成员加入,在成员列表管理成员,并建立该组织下的发送源和接收组。
发送源只能通知到同一组织下的接收组和成员
在发送源列表添加组织中的发送源,确定后可以获取发送源对应ID,作为source用于代码中发送
receiver可以为用户ID,可以为接收组ID,在接收组列表管理你的接收组
在你的代码中添加发送逻辑,在客户端登录后便能接收信息
curl -s \ --form-string "source=xxxxxxxx" \ --form-string "receiver=xxxxxxxx" \ --form-string "content=hello world" \ --form-string "title=hello" \ https://api.alertover.com/v1/alert
curl_setopt_array($ch = curl_init(), array( CURLOPT_URL => "https://api.alertover.com/v1/alert", CURLOPT_POSTFIELDS => array( "source" => "xxxxxxxx", "receiver" => "xxxxxxxx", "content" => "hello world", "title" => "hello", ), CURLOPT_SAFE_UPLOAD => true, )); curl_exec($ch); curl_close($ch);
import requests requests.post( "https://api.alertover.com/v1/alert", data={ "source": "xxxxxxxx", "receiver": "xxxxxxxx", "content": "hello world", "title": "hello" } )
require "net/https" url = URI.parse("https://api.alertover.com/v1/alert") req = Net::HTTP::Post.new(url.path) req.set_form_data({ :source => "xxxxxxxx", :receiver => "xxxxxxxx", :content => "hello world", :title => "hello", }) res = Net::HTTP.new(url.host, url.port) res.use_ssl = true res.verify_mode = OpenSSL::SSL::VERIFY_PEER res.start {|http| http.request(req) }