class GCM

Defined in:

gcm.cr
gcm/config.cr
gcm/response.cr
gcm/version.cr

Constant Summary

BASE_URI = "https://gcm-http.googleapis.com/gcm"
VERSION = "0.2.0"

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_key : String) #

[View source]
def self.new(api_key : String, &) #

[View source]

Instance Method Detail

def api_execute(method : String, path : String, body : String, headers : HTTP::Headers) : HTTP::Client::Response #

[View source]
def build_canonical_ids(body : SendResponse, registration_ids : Array(String)) : Array(CanonicalID) #

[View source]
def build_not_registered_ids(body : SendResponse, registration_id : Array(String)) #

[View source]
def build_response(http_response : HTTP::Client::Response, registration_ids : Array(String)) #

[View source]
def has_canonical_id?(result : Result) #

[View source]
def is_not_registered?(result) #

[View source]
def send(registration_ids : Array(String), options : Hash | Nil = nil) #

def send(registration_ids : Array(String), options : Options)


[View source]