bundl_instagram_api 1.0.3 → 1.0.7

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: ba1b07280316c1f4247352f14c79d674ca92959b3bf44ca9ad6133d66ecb13ae
4
- data.tar.gz: 4de0e5b114cdd06d4497fd7494081a477fa2b07ce782d64f4d913ae8e2ee04a2
3
+ metadata.gz: 31a453c437061cdb0e247d487a832c76be17fdc5ce94b41cbeb26b48770c8ef2
4
+ data.tar.gz: ce83d2ef1639b9e6e7df6ece5c4b9c51add151df4e54410a289bd2a1a9b4c52e
5
5
  SHA512:
6
- metadata.gz: dddf5f4a44677b1d93657efde1f0e420907a32578dd3a21eda6e27951b6554a080dc12b35064cbab9842f1aba1ef53419e37625c011fcffe78b044cf4bec6cb7
7
- data.tar.gz: 7c1d675ad155c87f577e296acb4640a96f0b0f998c84d47455581aad307177d0f3236623f550fb429218e28537de656513c5bde9faf391695c4d610f597573ff
6
+ metadata.gz: 954e2c54c45a42a9de412b1b422c9c64f1705d91adbd22123ed1bbdc69d666b5919bef4e9dff8ff05f327e4e483107c7a9c6ba7b1795a4cddf4beeff5d8a2a4c
7
+ data.tar.gz: 471e8171caa28798e057cb33b19c51059a334191fed171563b0ea02bf24a9e755122aa3b1a4ccb98f40152ca9828ab6df0ecf0bd643eede9ec5e744ddeaebd97
@@ -17,10 +17,10 @@ module BundlInstagramApi
17
17
  end
18
18
  end
19
19
 
20
- def user_insights(object_id, metrics: nil, period:nil)
21
- @raw_insights = get_connections(object_id, "insights?metric=#{metrics}&period=#{period}")
20
+ def user_insights(object_id, metrics: nil, period:nil, since:nil, to:nil)
21
+ @raw_insights = get_connections(object_id, "insights?metric=#{metrics}&period=#{period}&since=#{since}&until=#{to}")
22
22
  @raw_insights.reduce({}) do |result, insight_data|
23
- result[insight_data["name"]] = insight_data["values"].first["value"]
23
+ result[insight_data["name"]] = insight_data["values"]
24
24
  result
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module BundlInstagramApi
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundl_instagram_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-12 00:00:00.000000000 Z
11
+ date: 2021-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler