class

GCM

Inherits Reference < Object

Constants

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

Constructors

new(api_key : String)
Source
new(api_key : String, &)
Source

Instance methods

api_execute(method : String, path : String, body : String, headers : HTTP::Headers) : HTTP::Client::Response
Source
build_canonical_ids(body : SendResponse, registration_ids : Array(String)) : Array(CanonicalID)
Source
build_not_registered_ids(body : SendResponse, registration_id : Array(String))
Source
build_response(http_response : HTTP::Client::Response, registration_ids : Array(String))
Source
has_canonical_id?(result : Result)
Source
is_not_registered?(result)
Source
send(registration_ids : Array(String), options : Hash | Nil = nil)

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

Source

Nested types