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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0fcdbae5a32fe1401044ed740266a701d70268521ec3f4660abaabe2ca6965b
4
- data.tar.gz: 1cfe7c5f4d53b0d45e89776354e5be48e503fe298fe9902c0e1dac3b45947d5c
3
+ metadata.gz: c0924759e4dc52520a8ba072c3ed7403279f09209f7a9f9a3d3e12ee5d62fe43
4
+ data.tar.gz: d12122964da73e71fd1d09e4d3a6fbcc2a88fcc3641f8430cc029772f48924b4
5
5
  SHA512:
6
- metadata.gz: 7a84b5ba21802d3535fdc7ccdd7fdc1ebd365b0cfc7c409450f4cc32617dc4d0e24248b59d8337819cec9a739587ee09ed41eba2eeac34a95695672d546d3c76
7
- data.tar.gz: 165a6c8114b26e83e2559b542d816bdd751cd64a8b18d21170900e6dd242e88be750def9ac51bb16ccd930fe9f6d3b9fab953fa86a82e89fa8e8199196768e65
6
+ metadata.gz: '0191eb1af3c3d91f5e6ee1a85216e6de35977c21342f67ec808cf4e14cbf62c0e1fafa573e4fc1b3da33ff8231e29a3165f1d23a088b7a6a8743dfa155d2da9f'
7
+ data.tar.gz: a7c03c77ead8c1df7386e77d352a23c952185c8606034901b0710bd803d54e277f699d80a7bb532cb7a62c4d478ff743d130386e48d771c318e3aea4916e6270
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FatsecretLite
4
- VERSION = "0.1.3"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -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.get(
44
+ response = RestClient.post(
45
45
  'https://platform.fatsecret.com/rest/server.api',
46
- params: {
46
+ {
47
47
  method: 'food.get.v2',
48
48
  food_id: food_id,
49
49
  format: 'json'
50
50
  },
51
- headers: {
51
+ {
52
+ content_type: :json,
52
53
  Authorization: "Bearer #{access_token}"
53
54
  }
54
55
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fatsecret_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - KapilDevPal