File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ def basic_auth_header
28
28
end
29
29
30
30
def query_string
31
- '' # The state and code params shouldn't be sent as part of the callback_url in the callback phase
31
+ # The state and code params shouldn't be sent as part of the
32
+ # callback_url in the callback phase
33
+ ''
32
34
end
33
35
34
36
uid do
@@ -61,12 +63,12 @@ def query_string
61
63
62
64
def raw_info
63
65
if options [ :use_english_measure ] == 'true'
64
- @raw_info ||= MultiJson . load ( access_token .
66
+ @raw_info ||= access_token .
65
67
request ( 'get' , 'https://api.fitbit.com/1/user/-/profile.json' ,
66
- { 'Accept-Language' => 'en_US' } ) . body )
68
+ { 'Accept-Language' => 'en_US' } ) . parsed
67
69
else
68
- @raw_info ||= MultiJson . load ( access_token .
69
- get ( 'https://api.fitbit.com/1/user/-/profile.json' ) . body )
70
+ @raw_info ||= access_token .
71
+ get ( 'https://api.fitbit.com/1/user/-/profile.json' ) . parsed
70
72
end
71
73
end
72
74
end
You can’t perform that action at this time.
0 commit comments