fatsecret_lite 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fatsecret_lite/version.rb +1 -1
- data/lib/fatsecret_lite.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0924759e4dc52520a8ba072c3ed7403279f09209f7a9f9a3d3e12ee5d62fe43
|
4
|
+
data.tar.gz: d12122964da73e71fd1d09e4d3a6fbcc2a88fcc3641f8430cc029772f48924b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0191eb1af3c3d91f5e6ee1a85216e6de35977c21342f67ec808cf4e14cbf62c0e1fafa573e4fc1b3da33ff8231e29a3165f1d23a088b7a6a8743dfa155d2da9f'
|
7
|
+
data.tar.gz: a7c03c77ead8c1df7386e77d352a23c952185c8606034901b0710bd803d54e277f699d80a7bb532cb7a62c4d478ff743d130386e48d771c318e3aea4916e6270
|
data/lib/fatsecret_lite.rb
CHANGED
@@ -41,14 +41,15 @@ module FatsecretLite
|
|
41
41
|
def get_food_details(food_id)
|
42
42
|
access_token = get_access_token
|
43
43
|
|
44
|
-
response = RestClient.
|
44
|
+
response = RestClient.post(
|
45
45
|
'https://platform.fatsecret.com/rest/server.api',
|
46
|
-
|
46
|
+
{
|
47
47
|
method: 'food.get.v2',
|
48
48
|
food_id: food_id,
|
49
49
|
format: 'json'
|
50
50
|
},
|
51
|
-
|
51
|
+
{
|
52
|
+
content_type: :json,
|
52
53
|
Authorization: "Bearer #{access_token}"
|
53
54
|
}
|
54
55
|
)
|