bundl_instagram_api 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundl_instagram_api/client/insights.rb +2 -2
- data/lib/bundl_instagram_api/version.rb +1 -1
- 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: dde50e30a30bfaaf82446fd28ceae82838c12a2d05d2a0af37e26a76b910b871
|
4
|
+
data.tar.gz: 37854a4478860352c15c8e7c10861ec029a59e21e676896d0d314593c906721b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 354fdecff3b4e32ce98e75c658711b27638836d46393ec7b9bd981e03af5f1c2a4b9e007743d968493c48c568e3dd6e027b88d7c5503a4aefeeb9662ef7fc47c
|
7
|
+
data.tar.gz: 508ae593fc71a796d7f2f0d278c5ac2c63e67a57bdecee3364bed59448f619e3a7fe8a385651268b537038b1aa0fc6515d8f28590f9b91db65882774b599cb89
|
@@ -17,8 +17,8 @@ module BundlInstagramApi
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
def user_insights(object_id, metrics: nil, period:nil, since:nil,
|
21
|
-
@raw_insights = get_connections(object_id, "insights?metric=#{metrics}&period=#{period}&since=#{since}&until=#{
|
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
23
|
result[insight_data["name"]] = insight_data["values"].first["value"]
|
24
24
|
result
|