class GCM
- GCM
- Reference
- Object
Defined in:
gcm.crgcm/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
- #api_execute(method : String, path : String, body : String, headers : HTTP::Headers) : HTTP::Client::Response
- #build_canonical_ids(body : SendResponse, registration_ids : Array(String)) : Array(CanonicalID)
- #build_not_registered_ids(body : SendResponse, registration_id : Array(String))
- #build_response(http_response : HTTP::Client::Response, registration_ids : Array(String))
- #has_canonical_id?(result : Result)
- #is_not_registered?(result)
-
#send(registration_ids : Array(String), options : Hash | Nil = nil)
def send(registration_ids : Array(String), options : Options)
Constructor Detail
Instance Method Detail
def api_execute(method : String, path : String, body : String, headers : HTTP::Headers) : HTTP::Client::Response
#
def build_canonical_ids(body : SendResponse, registration_ids : Array(String)) : Array(CanonicalID)
#
def build_response(http_response : HTTP::Client::Response, registration_ids : Array(String))
#
def send(registration_ids : Array(String), options : Hash | Nil = nil)
#
def send(registration_ids : Array(String), options : Options)