module Pwush::Api::Devices

Public Instance Methods

application_open(hwid) click to toggle source
# File lib/pwush/api/devices.rb, line 24
def application_open(hwid)
  post(:applicationOpen, hwid: hwid)
end
create_test_device(params) click to toggle source
# File lib/pwush/api/devices.rb, line 12
def create_test_device(params)
  post(:createTestDevice, params)
end
list_test_devices() click to toggle source
# File lib/pwush/api/devices.rb, line 16
def list_test_devices
  post(:listTestDevices)
end
message_delivery_event(hwid, hash_tag = nil) click to toggle source
# File lib/pwush/api/devices.rb, line 32
def message_delivery_event(hwid, hash_tag = nil)
  post(:messageDeliveryEvent, hwid: hwid, hash: hash_tag)
end
push_stat(hwid, hash_tag = nil) click to toggle source
# File lib/pwush/api/devices.rb, line 28
def push_stat(hwid, hash_tag = nil)
  post(:pushStat, hwid: hwid, hash: hash_tag)
end
register_device(params) click to toggle source
# File lib/pwush/api/devices.rb, line 4
def register_device(params)
  post(:registerDevice, params)
end
set_badge(hwid, badge) click to toggle source
# File lib/pwush/api/devices.rb, line 20
def set_badge(hwid, badge)
  post(:setBadge, hwid: hwid, badge: badge)
end
set_purchase(hwid, params = {}) click to toggle source
# File lib/pwush/api/devices.rb, line 36
def set_purchase(hwid, params = {})
  post(:setPurchase, params.merge(hwid: hwid))
end
unregister_device(hwid) click to toggle source
# File lib/pwush/api/devices.rb, line 8
def unregister_device(hwid)
  post(:unregisterDevice, hwid: hwid)
end