Module: Pwush::Api::Devices

Included in:
Client
Defined in:
lib/pwush/api/devices.rb

Instance Method Summary collapse

Instance Method Details

#application_open(hwid) ⇒ Object



26
27
28
# File 'lib/pwush/api/devices.rb', line 26

def application_open(hwid)
  post(:applicationOpen, hwid: hwid)
end

#create_test_device(params) ⇒ Object



14
15
16
# File 'lib/pwush/api/devices.rb', line 14

def create_test_device(params)
  post(:createTestDevice, params)
end

#list_test_devicesObject



18
19
20
# File 'lib/pwush/api/devices.rb', line 18

def list_test_devices
  post(:listTestDevices)
end

#message_delivery_event(hwid, hash_tag = nil) ⇒ Object



34
35
36
# File 'lib/pwush/api/devices.rb', line 34

def message_delivery_event(hwid, hash_tag = nil)
  post(:messageDeliveryEvent, hwid: hwid, hash: hash_tag)
end

#push_stat(hwid, hash_tag = nil) ⇒ Object



30
31
32
# File 'lib/pwush/api/devices.rb', line 30

def push_stat(hwid, hash_tag = nil)
  post(:pushStat, hwid: hwid, hash: hash_tag)
end

#register_device(params) ⇒ Object



6
7
8
# File 'lib/pwush/api/devices.rb', line 6

def register_device(params)
  post(:registerDevice, params)
end

#set_badge(hwid, badge) ⇒ Object



22
23
24
# File 'lib/pwush/api/devices.rb', line 22

def set_badge(hwid, badge)
  post(:setBadge, hwid: hwid, badge: badge)
end

#set_purchase(hwid, params = {}) ⇒ Object



38
39
40
# File 'lib/pwush/api/devices.rb', line 38

def set_purchase(hwid, params = {})
  post(:setPurchase, params.merge(hwid: hwid))
end

#unregister_device(hwid) ⇒ Object



10
11
12
# File 'lib/pwush/api/devices.rb', line 10

def unregister_device(hwid)
  post(:unregisterDevice, hwid: hwid)
end