Sha256: 2ca6ad5413cf25795d5186f32d27893b5092a0f906b3e7f5b8c2925cf9c82c89
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
module Mipush module Service # 向 reg_id 发送消息 def self.send_regid(regid, message) regid = URI.encode regid.to_s url = SEND_ENDPOINT_REGID + "?" + "registration_id=" + regid + "&" + message.to_params RestClient.post url, "", { authorization: "key=#{message.secret_key}" } end # 向 alias 发送通知 def self.send_alias(aliass, message ) end # 向标签发送通知 def self.send_topic(topic, message) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mipush-0.0.3 | lib/mipush/service.rb |
mipush-0.0.2 | lib/mipush/service.rb |
mipush-0.0.1 | lib/mipush/service.rb |