simplificator-withings 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/withings/user.rb +6 -6
- data/simplificator-withings.gemspec +1 -1
- metadata +3 -3
data/lib/withings/user.rb
CHANGED
@@ -47,16 +47,16 @@ class Withings::User
|
|
47
47
|
end
|
48
48
|
|
49
49
|
|
50
|
-
def subscribe_notification(callback_url, description,
|
51
|
-
connection.get_request('/notify', :action => :subscribe, :callbackurl => callback_url, :comment => description, :appli =>
|
50
|
+
def subscribe_notification(callback_url, description, device = SCALE)
|
51
|
+
connection.get_request('/notify', :action => :subscribe, :callbackurl => callback_url, :comment => description, :appli => device)
|
52
52
|
end
|
53
53
|
|
54
|
-
def revoke_notification(callback_url,
|
55
|
-
connection.get_request('/notify', :action => :revoke, :callbackurl => callback_url, :appli =>
|
54
|
+
def revoke_notification(callback_url, device = SCALE)
|
55
|
+
connection.get_request('/notify', :action => :revoke, :callbackurl => callback_url, :appli => device)
|
56
56
|
end
|
57
57
|
|
58
|
-
def describe_notification(callback_url,
|
59
|
-
response = connection.get_request('/notify', :action => :get, :callbackurl => callback_url, :appli =>
|
58
|
+
def describe_notification(callback_url, device = SCALE)
|
59
|
+
response = connection.get_request('/notify', :action => :get, :callbackurl => callback_url, :appli => device)
|
60
60
|
Withings::NotificationDescription.new(response.merge(:callbackurl => callback_url))
|
61
61
|
end
|
62
62
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplificator-withings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- pascalbetz
|