bwapi 4.0.3 → 4.0.4.pre.166
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 +13 -5
- data/bwapi.gemspec +1 -1
- data/lib/bwapi/client/projects/data/volume.rb +78 -0
- data/lib/bwapi/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjJlNzJmYTMxNDM3ODVjNzVkOGM0YjliZWQ2YjJkZjRhNDE0NTE3Nw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZjJiMmRiMTEwYzBlNzBhYzY3YzIzNDQyZmMxMDYwOTMwZDEzYTYyYQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDMzMTBjOTIwNTZhYzc1ZmQxMGQ4YjNhNzM5MzIwNjAzM2ZmN2Y3NzVjM2Q5
|
10
|
+
ODk3ZTMxYmY0ZWM5NWRjNDA1MzdiY2ZlMzY4MGVlZDdjYmE4YzRmNTFlYWNl
|
11
|
+
MDIxNWVlMmVlNWY0YTkwMTRhYmU2NTNlMjI2YzJjY2JlOTQ3YWE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MTEwYTNlMmE0Mzc2ZTUxMTk5ZGRlZDVlN2Q0ZmFiNzczZjRjZjg3MzMzZDQ2
|
14
|
+
ZWRmODI3NmFjYjEwZTQ0Y2Q4YTM2NjQ3ZjBmMWYwYWRmYmFjYTU2MzNjNWJm
|
15
|
+
ZGZkYjc3MTg2OWY1YTliODJhMjYwNjljNWE3NjRiYWUyNDhmNDI=
|
data/bwapi.gemspec
CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'bwapi'
|
5
5
|
s.version = BWAPI::VERSION
|
6
6
|
s.version = BWAPI::VERSION + ".pre.#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
7
|
-
s.date = '2014-
|
7
|
+
s.date = '2014-02-03'
|
8
8
|
s.summary = 'Brandwatch API Wrapper'
|
9
9
|
s.description = 'A Ruby wrapper for the Brandwatch API'
|
10
10
|
s.author = 'Jonathan Chrisp'
|
@@ -16,6 +16,84 @@ module BWAPI
|
|
16
16
|
get "projects/#{project_id}/data/volume/dataRanges/days", opts
|
17
17
|
end
|
18
18
|
|
19
|
+
# Get a sub (top 10, by volume) items of the sites dimension
|
20
|
+
#
|
21
|
+
# @param project_id [Integer] Id of project
|
22
|
+
# @option opts [Hash] filter The filters to apply
|
23
|
+
def data_volume_queries_top_sites project_id, opts={}
|
24
|
+
get "projects/#{project_id}/data/volume/queries/topsites", opts
|
25
|
+
end
|
26
|
+
|
27
|
+
# Get a list of topics compared by criteria using two different values for that criteria
|
28
|
+
#
|
29
|
+
# @param project_id [Integer] Id of project
|
30
|
+
# @param criteria [String] The comparison criteria
|
31
|
+
# @option opts [String] criteriaValue1 Value one for criteria
|
32
|
+
# @option opts [String] criteriaValue2 Value one for criteria
|
33
|
+
# @option opts [Hash] filter The filters to apply
|
34
|
+
# @option opts [Float] minDifference The minimum criteria difference for a topic to be returned
|
35
|
+
# @option opts [Integer] minVolume The minimum volume (number of mentions) for a topic to be returned
|
36
|
+
# @option opts [Integer] limit The limit to return
|
37
|
+
# @option opts [Integer] sampleSize The sample size
|
38
|
+
def data_volume_topics_compare project_id, criteria, opts={}
|
39
|
+
get "projects/#{project_id}/data/volume/topics/compare/#{criteria}", opts
|
40
|
+
end
|
41
|
+
|
42
|
+
# Get top topics for given query IDs
|
43
|
+
#
|
44
|
+
# @param project_id [Integer] Id of project
|
45
|
+
# @option opts [Hash] filter The filters to apply
|
46
|
+
# @option opts [Integer] limit The limit to return
|
47
|
+
# @option opts [String] orderBy Parameter to sort by
|
48
|
+
# @option opts [String] orderDirection Direction of sort
|
49
|
+
def data_volume_topics_queries project_id, opts={}
|
50
|
+
get "projects/#{project_id}/data/volume/topics/queries", opts
|
51
|
+
end
|
52
|
+
|
53
|
+
# Get top authors for given query IDs
|
54
|
+
#
|
55
|
+
# @param project_id [Integer] Id of project
|
56
|
+
# @option opts [Hash] filter The filters to apply
|
57
|
+
# @option opts [Integer] limit The limit to return
|
58
|
+
# @option opts [String] orderBy Parameter to sort by
|
59
|
+
# @option opts [String] orderDirection Direction of sort
|
60
|
+
def data_volume_top_authors_queries project_id, opts={}
|
61
|
+
get "projects/#{project_id}/data/volume/topauthors/queries", opts
|
62
|
+
end
|
63
|
+
|
64
|
+
# Get top authors for given query IDs alternative
|
65
|
+
#
|
66
|
+
# @param project_id [Integer] Id of project
|
67
|
+
# @option opts [Hash] filter The filters to apply
|
68
|
+
# @option opts [Integer] limit The limit to return
|
69
|
+
# @option opts [String] orderBy Parameter to sort by
|
70
|
+
# @option opts [String] orderDirection Direction of sort
|
71
|
+
def data_volume_top_authors_queries_alt project_id, opts={}
|
72
|
+
get "projects/#{project_id}/data/volume/topauthors/queries/alt", opts
|
73
|
+
end
|
74
|
+
|
75
|
+
# Get top sites for given query IDs
|
76
|
+
#
|
77
|
+
# @param project_id [Integer] Id of project
|
78
|
+
# @option opts [Hash] filter The filters to apply
|
79
|
+
# @option opts [Integer] limit The limit to return
|
80
|
+
# @option opts [String] orderBy Parameter to sort by
|
81
|
+
# @option opts [String] orderDirection Direction of sort
|
82
|
+
def data_volume_top_sites_queries project_id, opts={}
|
83
|
+
get "projects/#{project_id}/data/volume/topsites/queries", opts
|
84
|
+
end
|
85
|
+
|
86
|
+
# Get top tweeters for given query IDs
|
87
|
+
#
|
88
|
+
# @param project_id [Integer] Id of project
|
89
|
+
# @option opts [Hash] filter The filters to apply
|
90
|
+
# @option opts [Integer] limit The limit to return
|
91
|
+
# @option opts [String] orderBy Parameter to sort by
|
92
|
+
# @option opts [String] orderDirection Direction of sort
|
93
|
+
def data_volume_top_tweeters_queries project_id, opts={}
|
94
|
+
get "projects/#{project_id}/data/volume/toptweeters/queries", opts
|
95
|
+
end
|
96
|
+
|
19
97
|
end
|
20
98
|
end
|
21
99
|
end
|
data/lib/bwapi/version.rb
CHANGED
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: 4.0.
|
4
|
+
version: 4.0.4.pre.166
|
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-
|
11
|
+
date: 2014-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -189,14 +189,14 @@ require_paths:
|
|
189
189
|
- lib
|
190
190
|
required_ruby_version: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - '>='
|
192
|
+
- - ! '>='
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 1.9.2
|
195
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
196
|
requirements:
|
197
|
-
- - '
|
197
|
+
- - ! '>'
|
198
198
|
- !ruby/object:Gem::Version
|
199
|
-
version:
|
199
|
+
version: 1.3.1
|
200
200
|
requirements: []
|
201
201
|
rubyforge_project:
|
202
202
|
rubygems_version: 2.2.1
|
@@ -209,4 +209,3 @@ test_files:
|
|
209
209
|
- spec/bwapi_spec.rb
|
210
210
|
- spec/fixtures/.netrc
|
211
211
|
- spec/helper.rb
|
212
|
-
has_rdoc:
|