bundl_instagram_api 1.0.1 → 1.0.5

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: 614f4941afaa80a35cd56c1d7f045f372890feca2d45bfec35f808e371125eea
4
- data.tar.gz: b679a6b36fde0e53c7d6d0af9edbad8dc151fb97e04479aee0769721598777bb
3
+ metadata.gz: 0d12399fcd29530db247862052fbcf8f154c2d4bb452dec671b470d874f1bca1
4
+ data.tar.gz: 939a106f68965b453d11a3ada50789a1182cfcb2223630349ea04ff145e527bd
5
5
  SHA512:
6
- metadata.gz: f79c66037693d2596406be6ad7885ceab2213771c731bd5b87243ad19156cde57fb831977554ab8824b6c8678c016f05dad391e132e61a4dc707112cb811be74
7
- data.tar.gz: 69e4fb661fa6e1bbc0df4c9dd2f8275be4d0af45aec8b9d81a1c638716898ae2c8eda65c25f3b8b4b99bd7e47e47247b3780467f70e10c3aa62b64fa8a151231
6
+ metadata.gz: 648dcd7920df5fda06574acaa2bf6721ba0eb690d632cf64b503cad684820ad707af666758521c8b245b64466275576a44198d64f379e9799f63ee243388cbe5
7
+ data.tar.gz: ba48f2f0adbfa5df827b4aae5675e0db10f809e5db5724084d37a8ba97651dd5aea703d5a7ebb6b7bf756527ec1936487db562b9bd59d21bfd04a5bba1bf4113
@@ -3,8 +3,8 @@ module BundlInstagramApi
3
3
  module Insights
4
4
 
5
5
  METRIC_HASH = {
6
- image: 'impressions,reach',
7
- video: 'impressions,reach,video_views',
6
+ image: 'impressions,reach,engagement',
7
+ video: 'impressions,reach,video_views,engagement',
8
8
  story: 'impressions,replies,reach,taps_forward,taps_back,exits'
9
9
  }
10
10
 
@@ -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, until:nil)
21
+ @raw_insights = get_connections(object_id, "insights?metric=#{metrics}&period=#{period}&since=#{since}&until=#{until}")
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.1"
2
+ VERSION = "1.0.5"
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.1
4
+ version: 1.0.5
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