bundl_instagram_api 1.0.0 → 1.0.4

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: a3f23a75d61a18e52ea5a321dcfa0be0b3fe49d57703fa74f8add56bc3d2e0d3
4
- data.tar.gz: 504f3f7d0957352958aa4da4d31908797f516de3eee4a4fbe3e6115863439f37
3
+ metadata.gz: 2fdf3a30289edc61b01af3ec80ce1b530e773d63d37cddf5f17887f93693c01b
4
+ data.tar.gz: 9f9fda66f1754a814bc6839a8b9e6698521bad101197686a505454d22923ff1b
5
5
  SHA512:
6
- metadata.gz: e292358f69e7c4106d874c03834a85035816927a09a8699e451005ee5b2fecbd0dcc4319789c7c0e0442fb13aedaf719bb02a51bd5dfbc468dc581979afb72f2
7
- data.tar.gz: f6f1f738194e9e949b1d9c11a76b18fff445f9a77a879fc59c96b0aae6e9a5dfb9687abb92200b6fb545cb27070c7417887cfa60f12036658fcf875bb6185502
6
+ metadata.gz: f4055e3cdb68bcbede7e84e200176cbbce23846b5724bae2fd29b96d10002d1c662819d8fd2642d284980339628acb0b566c9f6b09339626ee473b5624dd267e
7
+ data.tar.gz: a153a73eb311b4035287bfa13d57bdc4526f109d3081f508618428b1b39d882042b45ad4f7c01f470879532b0f6ba67290be25ff119d40f59cdb7824233c57c2
@@ -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,7 +17,7 @@ module BundlInstagramApi
17
17
  end
18
18
  end
19
19
 
20
- def user_insights(object_id, metrics: nil, period:nil)
20
+ def user_insights(object_id, metrics: nil, period:nil, since:nil, until:nil)
21
21
  @raw_insights = get_connections(object_id, "insights?metric=#{metrics}&period=#{period}")
22
22
  @raw_insights.reduce({}) do |result, insight_data|
23
23
  result[insight_data["name"]] = insight_data["values"].first["value"]
@@ -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.0"
2
+ VERSION = "1.0.4"
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.0
4
+ version: 1.0.4
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-04 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