GCM
Inherits Reference < Object
Constants
BASE_URI = "https://gcm-http.googleapis.com/gcm"
VERSION = "0.2.0"
Constructors
new(api_key : String)
Sourcenew(api_key : String, &)
SourceInstance methods
api_execute(method : String, path : String, body : String, headers : HTTP::Headers) : HTTP::Client::Response
Sourcebuild_canonical_ids(body : SendResponse, registration_ids : Array(String)) : Array(CanonicalID)
Sourcebuild_not_registered_ids(body : SendResponse, registration_id : Array(String))
Sourcebuild_response(http_response : HTTP::Client::Response, registration_ids : Array(String))
Sourcehas_canonical_id?(result : Result)
Sourceis_not_registered?(result)
Sourcesend(registration_ids : Array(String), options : Hash | Nil = nil)
def send(registration_ids : Array(String), options : Options)