bwapi 6.1.0.pre.192 → 6.2.0.pre.205
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/bwapi/client/projects.rb +2 -0
- data/lib/bwapi/client/projects/data.rb +10 -1
- data/lib/bwapi/client/projects/demographics.rb +22 -0
- data/lib/bwapi/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGNmODJhOWM0NjIxMjIxNmVkOTAyY2QzZjZiYTBlZTdmOWMyYzY1NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmFmOTI2ZTBmODYxNzdkZDc4NDcwMzFmODNmODJmNTgzZjYwNDU3Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGY3ZDVmYTc5MmJiZDQ3MGQwZGQ4MzBhYTQ2MGNhYmRjZDY5Y2QxN2E5MmZm
|
10
|
+
ZGVmNTk1OTIwNTY0ZjdlOTg2ZDM3ODFkNDRmZmI3YWQ5NDFjZWUwNDE0OGU3
|
11
|
+
YjljYzE3N2RiOTIzMGZmYjM5MmIwZTY2NWMyMGUyYjZlNTJlMGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTg5OTMzZTcyMzkyNTMyYWM4NWE0NzJmOTFmNjAyZmE0ZjgyNjlmNGJlYzZi
|
14
|
+
OTk1Y2YwM2YyODQ5NzA1OGE0YjMyZDM0Y2JlNDU4MTFhNTliM2YxMzc0Mjhi
|
15
|
+
YzI2MDE1ZDQ4OTIzZDg2NTEzMTdiMWYwYTk1YjU5ZjY5ZmNhYzU=
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'bwapi/client/projects/categories'
|
2
2
|
require 'bwapi/client/projects/data'
|
3
3
|
require 'bwapi/client/projects/data_download'
|
4
|
+
require 'bwapi/client/projects/demographics'
|
4
5
|
require 'bwapi/client/projects/facebook_queries'
|
5
6
|
require 'bwapi/client/projects/twitter_queries'
|
6
7
|
require 'bwapi/client/projects/signals'
|
@@ -81,6 +82,7 @@ module BWAPI
|
|
81
82
|
include BWAPI::Client::Projects::Categories
|
82
83
|
include BWAPI::Client::Projects::Data
|
83
84
|
include BWAPI::Client::Projects::DataDownload
|
85
|
+
include BWAPI::Client::Projects::Demographics
|
84
86
|
include BWAPI::Client::Projects::FacebookQueries
|
85
87
|
include BWAPI::Client::Projects::TwitterQueries
|
86
88
|
include BWAPI::Client::Projects::Signals
|
@@ -14,13 +14,22 @@ module BWAPI
|
|
14
14
|
# @param dimension_one [String] Dimension 1 value
|
15
15
|
# @param dimension_two [String] Dimension 2 value
|
16
16
|
# @param opts [Hash] options hash of parameters
|
17
|
-
# @option opts [Integer] projectId Id of the project
|
18
17
|
# @option opts [Hash] filter The filters to apply
|
19
18
|
# @return [Hashie::Mash] All Chart data mentions
|
20
19
|
def data project_id, aggregate, dimension_one, dimension_two, opts={}
|
21
20
|
get "projects/#{project_id}/data/#{aggregate}/#{dimension_one}/#{dimension_two}", opts
|
22
21
|
end
|
23
22
|
|
23
|
+
# Get headline figures for specified channels
|
24
|
+
#
|
25
|
+
# @param project_id [Integer] Id of project
|
26
|
+
# @param opts [Hash] options hash of parameters
|
27
|
+
# @option opts [Hash] filter The filters to apply
|
28
|
+
# @return [Hashie::Mash] Headline figures for spedified channels
|
29
|
+
def data_headlines project_id, opts={}
|
30
|
+
get "projects/#{project_id}/data/headlines", opts
|
31
|
+
end
|
32
|
+
|
24
33
|
include BWAPI::Client::Projects::Data::Mentions
|
25
34
|
include BWAPI::Client::Projects::Data::Volume
|
26
35
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
# Demographics module for projects/demographics endpoints
|
5
|
+
module Demographics
|
6
|
+
|
7
|
+
# Get top values for given metric and query id
|
8
|
+
#
|
9
|
+
# @param project_id [Integer] Id of project
|
10
|
+
# @param metric [String] Demographic metric
|
11
|
+
# @param opts [Hash] options Hash of parameters
|
12
|
+
# @option opts [Integer] limit The limit to return
|
13
|
+
# @option opts [Hash] filter The filters to apply
|
14
|
+
# @return [Hashie::Mash] All data downloads in project
|
15
|
+
def demographics project_id, metric, opts={}
|
16
|
+
get "projects/#{project_id}/demographics/#{metric}", opts
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/bwapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.2.0.pre.205
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- lib/bwapi/client/projects/data/mentions.rb
|
150
150
|
- lib/bwapi/client/projects/data/volume.rb
|
151
151
|
- lib/bwapi/client/projects/data_download.rb
|
152
|
+
- lib/bwapi/client/projects/demographics.rb
|
152
153
|
- lib/bwapi/client/projects/facebook_queries.rb
|
153
154
|
- lib/bwapi/client/projects/queries.rb
|
154
155
|
- lib/bwapi/client/projects/queries/backfill.rb
|