Sha256: b20bba1391bcefc038ba8f14fdcf4d605bc301ee6438406f604fdee39779e0f9
Contents?: true
Size: 945 Bytes
Versions: 1
Compression:
Stored size: 945 Bytes
Contents
# frozen_string_literal: true module Pwush module Api module Devices def register_device(params) post(:registerDevice, params) end def unregister_device(hwid) post(:unregisterDevice, hwid: hwid) end def create_test_device(params) post(:createTestDevice, params) end def list_test_devices post(:listTestDevices) end def set_badge(hwid, badge) post(:setBadge, hwid: hwid, badge: badge) end def application_open(hwid) post(:applicationOpen, hwid: hwid) end def push_stat(hwid, hash_tag = nil) post(:pushStat, hwid: hwid, hash: hash_tag) end def message_delivery_event(hwid, hash_tag = nil) post(:messageDeliveryEvent, hwid: hwid, hash: hash_tag) end def set_purchase(hwid, params = {}) post(:setPurchase, params.merge(hwid: hwid)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pwush-0.4.0 | lib/pwush/api/devices.rb |