bundl_instagram_api 1.0.2 → 1.0.6

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: cf9968174f360c6b51c6f13853be44ce6dbe7337ec9dc51d6791540ced2772b8
4
- data.tar.gz: 1e0eb7e150768059e41ecc5586a63b84888724e0b1fc4889ce56cb6497a86368
3
+ metadata.gz: dde50e30a30bfaaf82446fd28ceae82838c12a2d05d2a0af37e26a76b910b871
4
+ data.tar.gz: 37854a4478860352c15c8e7c10861ec029a59e21e676896d0d314593c906721b
5
5
  SHA512:
6
- metadata.gz: b37753c0a9a93317e6486d2b1e9cd448c0bfb166c54ce5c89465534705ec1cb1592d44bad2d0726ec147c6307093e1255dc8515a959fc1d45885f53e803d5299
7
- data.tar.gz: 420cf8bfdcb738b420d392a3b4bdde515e62cde117e20c7f1482b98403290af7962f95c64c0435426fdb1cc600cbced810b4b28d98235bc9489ac0ea2eb1e804
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)
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
23
  result[insight_data["name"]] = insight_data["values"].first["value"]
24
24
  result
@@ -4,9 +4,9 @@ module BundlInstagramApi
4
4
  attr_accessor :media_info, :raw_insights
5
5
 
6
6
  MEDIA_INFO_HASH = {
7
- image: "comments_count,like_count,media_type,"\
7
+ image: "comments_count,like_count,caption,media_type,"\
8
8
  "media_url,permalink,timestamp,thumbnail_url",
9
- video: "comments_count,like_count,media_type,"\
9
+ video: "comments_count,like_count,caption,media_type,"\
10
10
  "media_url,permalink,timestamp,thumbnail_url",
11
11
  story: "media_type,media_url,permalink,"\
12
12
  "timestamp,thumbnail_url"
@@ -1,3 +1,3 @@
1
1
  module BundlInstagramApi
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.6"
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.2
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-23 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