bwapi 12.1.0.pre.648 → 12.1.0.pre.655
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +0 -1
- data/lib/bwapi/client/brandwatch/usage_report.rb +5 -5
- data/lib/bwapi/client/projects/queries.rb +62 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODFlZTI4YTZmNjBlYTA0YmE0MTI2YzFlYjQxOGE0NTRjMTU5OTQwNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjBiOWY2ZDMxYWM5MTEzMDhmMTYyZjc1ZjBiN2UxNjlmMjc2MDJiOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2NiZGUzZDIyNWYxNGNhNzdlOWYzMTA1MDdkZWIxOGRmYTA4YmI0NWMwYWFj
|
10
|
+
MDFlN2Y3MjM4ODk3YmNlMWViMGEzMWZhMjQxM2E1NWU1MDRhNjViYWIwNmMx
|
11
|
+
MGIxN2QwZDkyNTFmZGU3ZGNmMGFiMjdkMzU5YWJkZWU1MDI0YmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2MxMmRiMDljOTdjMTc0NmViOTFjNDdkNzUyNDY1Zjg1Y2RjZDNiMDIzMGEy
|
14
|
+
MGM5NWFhNTRkMWVlOGNjMTdjNDExMDFjMjhmODE5ZWZiN2U1NzgxMzhkZmJk
|
15
|
+
N2JkMWRiODZhYjBmMGUxMGRkNTYyY2ZhMWQzODU4ZTk5MTA3NjI=
|
data/.travis.yml
CHANGED
@@ -5,13 +5,13 @@ module BWAPI
|
|
5
5
|
module UsageReport
|
6
6
|
# Get the Clients Mention Usage report
|
7
7
|
#
|
8
|
-
# @param
|
9
|
-
# @param
|
10
|
-
# @param
|
8
|
+
# @param client_id [Integer] Id of client
|
9
|
+
# @param start_date [DateTime] Report startDate
|
10
|
+
# @param end_date [DateTime] Report endDate
|
11
11
|
# @param opts [Hash] options hash of parameters
|
12
12
|
# @return [Hash] Returns usage report for active client
|
13
|
-
def brandwatch_usage_report(
|
14
|
-
get "brandwatch/usageReport/client/#{
|
13
|
+
def brandwatch_usage_report(client_id, start_date, end_date, opts = {})
|
14
|
+
get "brandwatch/usageReport/client/#{client_id}/start/#{start_date}/end/#{end_date}", opts
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -29,6 +29,15 @@ module BWAPI
|
|
29
29
|
get "projects/#{project_id}/queries/summary"
|
30
30
|
end
|
31
31
|
|
32
|
+
# Get a specific wizard query in project
|
33
|
+
#
|
34
|
+
# @param project_id [Integer] Id of project
|
35
|
+
# @param query_id [Integer] Id of query
|
36
|
+
# @return [Hash] Specific wizard query
|
37
|
+
def get_wizard_query(project_id, query_id)
|
38
|
+
get "projects/#{project_id}/querywizard/#{query_id}"
|
39
|
+
end
|
40
|
+
|
32
41
|
# Get a specific query in project
|
33
42
|
#
|
34
43
|
# @param project_id [Integer] Id of project
|
@@ -42,7 +51,7 @@ module BWAPI
|
|
42
51
|
#
|
43
52
|
# @param project_id [Integer] Id of project
|
44
53
|
# @param opts [Hash] options hash of parameters
|
45
|
-
# @option opts [
|
54
|
+
# @option opts [Integer] id Id of the query
|
46
55
|
# @option opts [String] name Name of the project
|
47
56
|
# @option opts [Integer] dailyLimit Daily limit of the query
|
48
57
|
# @option opts [Integer] twitterLimit Twitter limit of the query
|
@@ -61,6 +70,32 @@ module BWAPI
|
|
61
70
|
post "projects/#{project_id}/queries", opts
|
62
71
|
end
|
63
72
|
|
73
|
+
# Create a wizard query in project
|
74
|
+
#
|
75
|
+
# @param project_id [Integer] Id of project
|
76
|
+
# @param opts [Hash] options hash of parameters
|
77
|
+
# @option opts [Integer] id Id of the query
|
78
|
+
# @option opts [String] name Name of the project
|
79
|
+
# @option opts [Integer] dailyLimit Daily limit of the query
|
80
|
+
# @option opts [Integer] twitterLimit Twitter limit of the query
|
81
|
+
# @option opts [Integer] averageMonthlyMentions Average monthly mentions
|
82
|
+
# @option opts [String] type Query type
|
83
|
+
# @option opts [Array] includedTerms Included terms of terms query
|
84
|
+
# @option opts [Array] contextTerms Content terms of the query
|
85
|
+
# @option opts [Array] excludedTerms Excluded terms of thequery
|
86
|
+
# @option opts [Array] languages Query languages
|
87
|
+
# @option opts [String] twitterScreenName Tracked twitter screen name
|
88
|
+
# @option opts [String] industry Industry of the query
|
89
|
+
# @option opts [String] usecase The Usecase the Query was created for
|
90
|
+
# @option opts [String] type Type of query
|
91
|
+
# @option opts [Object] queryWizardConfiguration JSON object containing configuration for Query Wizard
|
92
|
+
# @option opts [Date] creationDate Date the query was created on
|
93
|
+
# @option opts [Date] lastModificationDate Modification date of the query
|
94
|
+
# @return [Hash] New query wizard
|
95
|
+
def create_wizard_query(project_id, opts = {})
|
96
|
+
post "projects/#{project_id}/querywizard", opts
|
97
|
+
end
|
98
|
+
|
64
99
|
# Update an existing query in project
|
65
100
|
#
|
66
101
|
# @param project_id [Integer] Id of project
|
@@ -85,6 +120,32 @@ module BWAPI
|
|
85
120
|
put "projects/#{project_id}/queries/#{query_id}", opts
|
86
121
|
end
|
87
122
|
|
123
|
+
# Update an existing wizard query in project
|
124
|
+
#
|
125
|
+
# @param project_id [Integer] Id of project
|
126
|
+
# @param opts [Hash] options hash of parameters
|
127
|
+
# @option opts [Integer] id Id of the query
|
128
|
+
# @option opts [String] name Name of the project
|
129
|
+
# @option opts [Integer] dailyLimit Daily limit of the query
|
130
|
+
# @option opts [Integer] twitterLimit Twitter limit of the query
|
131
|
+
# @option opts [Integer] averageMonthlyMentions Average monthly mentions
|
132
|
+
# @option opts [String] type Query type
|
133
|
+
# @option opts [Array] includedTerms Included terms of terms query
|
134
|
+
# @option opts [Array] contextTerms Content terms of the query
|
135
|
+
# @option opts [Array] excludedTerms Excluded terms of thequery
|
136
|
+
# @option opts [Array] languages Query languages
|
137
|
+
# @option opts [String] twitterScreenName Tracked twitter screen name
|
138
|
+
# @option opts [String] industry Industry of the query
|
139
|
+
# @option opts [String] usecase The Usecase the Query was created for
|
140
|
+
# @option opts [String] type Type of query
|
141
|
+
# @option opts [Object] queryWizardConfiguration JSON object containing configuration for Query Wizard
|
142
|
+
# @option opts [Date] creationDate Date the query was created on
|
143
|
+
# @option opts [Date] lastModificationDate Modification date of the query
|
144
|
+
# @return [Hash] Update query wizard
|
145
|
+
def update_wizard_query(project_id, query_id, opts = {})
|
146
|
+
put "projects/#{project_id}/querywizard/#{query_id}", opts
|
147
|
+
end
|
148
|
+
|
88
149
|
# Delete an existing query project
|
89
150
|
#
|
90
151
|
# @param project_id [Integer] Id of project
|
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: 12.1.0.pre.
|
4
|
+
version: 12.1.0.pre.655
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|