Class: Xiaomi::Push::Services::Feedback
- Inherits:
-
Object
- Object
- Xiaomi::Push::Services::Feedback
- Defined in:
- lib/xiaomi/push/services/feedback.rb
Overview
适用于 iOS 推送获取设备 Feedback API
Instance Attribute Summary collapse
-
#context ⇒ Client
The current value of context.
Instance Method Summary collapse
-
#initialize(context) ⇒ Feedback
constructor
A new instance of Feedback.
-
#invalid ⇒ Hash
获取失效的 device token.
Constructor Details
#initialize(context) ⇒ Feedback
Returns a new instance of Feedback.
10 11 12 |
# File 'lib/xiaomi/push/services/feedback.rb', line 10 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Client
Returns the current value of context.
7 8 9 |
# File 'lib/xiaomi/push/services/feedback.rb', line 7 def context @context end |
Instance Method Details
#invalid ⇒ Hash
获取失效的 device token
19 20 21 22 |
# File 'lib/xiaomi/push/services/feedback.rb', line 19 def invalid url = 'https://feedback.xmpush.xiaomi.com/v1/feedback/fetch_invalid_regids' @context.get(url) end |