bwapi 10.0.0.pre.495 → 10.0.0.pre.498
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/bwapi/client/projects/data.rb +10 -0
- data/lib/bwapi/client/projects/data/audience.rb +21 -0
- data/lib/bwapi/client/projects/data/audience_activity.rb +21 -0
- data/lib/bwapi/client/projects/data/channel_metrics.rb +21 -0
- data/lib/bwapi/client/projects/data/impressions.rb +21 -0
- data/lib/bwapi/client/projects/data/owner_activity.rb +21 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzAwNmRjNTNjN2MxMWMzY2YyZjYzYzQ5Y2FjMmY1ZGMxMGUxYzRmZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzJmZTIzNzFmYjM3MjQyMjMxOGZhM2RkMWNjMDExNmZmY2ZhOTg4Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmM4ZDE4OWNjZTg3NmFjZDQyZGNiODZmN2IyYWZkOGJhZTlmY2RjYmVkYjlk
|
10
|
+
MTg2YjFiMGQ0YTU2OWVkZTIyNzcxNTYxNDlhMjAwM2M4MWJhYjJkY2FiMWUz
|
11
|
+
ZmM0ZGI5ZjdiNzE0OGZjODI2MWFiN2JiNTg3ZTkxMGY4MGU3N2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzUzMThkNjFiZTc2OTFkMTI0MTljZTBhZjE2ZjViYzA2NzZhODMxMDY5MzU5
|
14
|
+
MGY5NjgzN2Q0ODI4MzJlYzdjNmNmODVjYmNhODc0ZWFiMGRjMzhiNzZiYTUz
|
15
|
+
ZWUyNjg2MjNlZDA5OGY3YjA5MmM2MWZkNTNmYTc5MWY1N2U0ZTE=
|
@@ -1,5 +1,10 @@
|
|
1
|
+
require 'bwapi/client/projects/data/audience'
|
2
|
+
require 'bwapi/client/projects/data/audience_activity'
|
3
|
+
require 'bwapi/client/projects/data/channel_metrics'
|
1
4
|
require 'bwapi/client/projects/data/headlines'
|
5
|
+
require 'bwapi/client/projects/data/impressions'
|
2
6
|
require 'bwapi/client/projects/data/mentions'
|
7
|
+
require 'bwapi/client/projects/data/owner_activity'
|
3
8
|
require 'bwapi/client/projects/data/volume'
|
4
9
|
|
5
10
|
module BWAPI
|
@@ -30,8 +35,13 @@ module BWAPI
|
|
30
35
|
get "projects/#{project_id}/data/headlines", opts
|
31
36
|
end
|
32
37
|
|
38
|
+
include BWAPI::Client::Projects::Data::Audience
|
39
|
+
include BWAPI::Client::Projects::Data::AudienceActivity
|
40
|
+
include BWAPI::Client::Projects::Data::ChannelMetrics
|
33
41
|
include BWAPI::Client::Projects::Data::Headlines
|
42
|
+
include BWAPI::Client::Projects::Data::Impressions
|
34
43
|
include BWAPI::Client::Projects::Data::Mentions
|
44
|
+
include BWAPI::Client::Projects::Data::OwnerActivity
|
35
45
|
include BWAPI::Client::Projects::Data::Volume
|
36
46
|
end
|
37
47
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# Audience module for projects/data/audience endpoints
|
6
|
+
module Audience
|
7
|
+
# Get all audience data for queries broken down by a second dimension
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param dimension_two [String] Dimension 2 value
|
11
|
+
# @param opts [Hash] options hash of parameters
|
12
|
+
# @option opts [Hash] filter The filters to apply
|
13
|
+
# @return [Hash] All data audience queries mentions
|
14
|
+
def data_audience_queries(project_id, dimension_two, opts = {})
|
15
|
+
get "projects/#{project_id}/data/audience/queries/#{dimension_two}", opts
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# AudienceActivity module for projects/data/audienceActivity endpoints
|
6
|
+
module AudienceActivity
|
7
|
+
# Get all audience activity data for queries broken down by a second dimension
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param dimension_two [String] Dimension 2 value
|
11
|
+
# @param opts [Hash] options hash of parameters
|
12
|
+
# @option opts [Hash] filter The filters to apply
|
13
|
+
# @return [Hash] All data audience activity queries mentions
|
14
|
+
def data_audience_activity_queries(project_id, dimension_two, opts = {})
|
15
|
+
get "projects/#{project_id}/data/audienceActivity/queries/#{dimension_two}", opts
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# ChannelMetrics module for projects/data/channelMetrics endpoints
|
6
|
+
module ChannelMetrics
|
7
|
+
# Get all channel metrics data for queries broken down by a second dimension
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param dimension_two [String] Dimension 2 value
|
11
|
+
# @param opts [Hash] options hash of parameters
|
12
|
+
# @option opts [Hash] filter The filters to apply
|
13
|
+
# @return [Hash] All data channel metrics queries mentions
|
14
|
+
def data_channel_metrics_queries(project_id, dimension_two, opts = {})
|
15
|
+
get "projects/#{project_id}/data/channelMetrics/queries/#{dimension_two}", opts
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# Impressions module for projects/data/impressions endpoints
|
6
|
+
module Impressions
|
7
|
+
# Get all impressions data for queries broken down by a second dimension
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param dimension_two [String] Dimension 2 value
|
11
|
+
# @param opts [Hash] options hash of parameters
|
12
|
+
# @option opts [Hash] filter The filters to apply
|
13
|
+
# @return [Hash] All data impressions queries mentions
|
14
|
+
def data_impressions_queries(project_id, dimension_two, opts = {})
|
15
|
+
get "projects/#{project_id}/data/impressions/queries/#{dimension_two}", opts
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
module Data
|
5
|
+
# OwnerActivity module for projects/data/ownerActivity endpoints
|
6
|
+
module OwnerActivity
|
7
|
+
# Get all owner activity data for queries broken down by a second dimension
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param dimension_two [String] Dimension 2 value
|
11
|
+
# @param opts [Hash] options hash of parameters
|
12
|
+
# @option opts [Hash] filter The filters to apply
|
13
|
+
# @return [Hash] All data owner activity queries mentions
|
14
|
+
def data_owner_activity_queries(project_id, dimension_two, opts = {})
|
15
|
+
get "projects/#{project_id}/data/ownerActivity/queries/#{dimension_two}", opts
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.0.0.pre.
|
4
|
+
version: 10.0.0.pre.498
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -186,9 +186,14 @@ files:
|
|
186
186
|
- lib/bwapi/client/projects/categories.rb
|
187
187
|
- lib/bwapi/client/projects/categories/copy.rb
|
188
188
|
- lib/bwapi/client/projects/data.rb
|
189
|
+
- lib/bwapi/client/projects/data/audience.rb
|
190
|
+
- lib/bwapi/client/projects/data/audience_activity.rb
|
191
|
+
- lib/bwapi/client/projects/data/channel_metrics.rb
|
189
192
|
- lib/bwapi/client/projects/data/headlines.rb
|
193
|
+
- lib/bwapi/client/projects/data/impressions.rb
|
190
194
|
- lib/bwapi/client/projects/data/mentions.rb
|
191
195
|
- lib/bwapi/client/projects/data/mentions/notes.rb
|
196
|
+
- lib/bwapi/client/projects/data/owner_activity.rb
|
192
197
|
- lib/bwapi/client/projects/data/volume.rb
|
193
198
|
- lib/bwapi/client/projects/data_download.rb
|
194
199
|
- lib/bwapi/client/projects/demographics.rb
|