bwapi 10.0.0.pre.530 → 10.0.0.pre.531

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzE4OTk0YmE0MTQ5OTY5MWZiMzY0NDhmNDQwMzg5ODk1NTk5Nzg2OA==
4
+ ZDA1ZDYwMWNmYTM2Njc4NWQxZmYzMjljNmNlZWIwZmUwYmM2N2IxMw==
5
5
  data.tar.gz: !binary |-
6
- NzM1M2ViZTc0ZGJhMzI3ZWQ4NTY3MzQwMmI3NzM2ZjY1YWFjMzI5Nw==
6
+ NGJlYzNhNGY2NDgwZmYwNjAwY2E5Y2M0OGRjZTE5ZWNkNzdiOGViZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2NmYmZmODIyMzM2ZjUzNDJlZTcwZmUwYzA2MzI1MjY5Yzk3YmFlM2UwYWQy
10
- ZWJmNDg3NDE1N2FiZDBmNDUxNGQyOGIxZDhkNzM5ODI4YzgwYWM1ODQyYjYy
11
- MGY5YmRkY2U2MjE2YzhmZGE3OTUwMTNmYjc5NmU4NzRlODAxNWY=
9
+ ZDA5M2QwZjU0ZTMxNDQ1MWZmOGFiNzAwN2U0ZWIxZjQyYmFmM2IwZmIzMWI3
10
+ ZDllYTY4MWVjYWU4NTNjZTJiYmYwNTI0YWQ5MWUxN2JmMzBlYjY0NDJjNTAy
11
+ Y2Q3ZDAxZTAxMGJlMzc4ZDBhOTM1OTBmYjcyYmIzN2UwNjk0YzU=
12
12
  data.tar.gz: !binary |-
13
- YjY2YzQwZDhiN2RkM2QzNDg1NmVmMzFhZjQyMTY1NWExMzkyNWY4NTA1YmY3
14
- Y2E1YzkwNjQ0NWMzNGNiNDk1N2ZmODFiMWM1MjBiMzNhODM1ZmVkZGZiMGY3
15
- YWQ4OTAyMTY0MTU5NTMxYmZhNzFkZjVlNDRiZGVhYmNiNzE0NWY=
13
+ YjYxNTgyYzQ3YmYzMzAwNjU4M2FjYTRiMWJjYmIyYjgzNTRmNGJjOWZhYjE1
14
+ NDIyODg0ODRmM2I0NWU1YWQ3Y2MxMDI0M2YwMDk2Y2ZhZjg5ZDUwZGEwYTE3
15
+ NTViZTQxN2U2NzUxNTBjYTc2YzkxYmQ0Y2MxMTMwMTRjMjNkYzE=
@@ -1,6 +1,8 @@
1
1
  require 'bwapi/client/brandwatch/become'
2
2
  require 'bwapi/client/brandwatch/clients'
3
+ require 'bwapi/client/brandwatch/log_level'
3
4
  require 'bwapi/client/brandwatch/price_structures'
5
+ require 'bwapi/client/brandwatch/usage_report'
4
6
 
5
7
  module BWAPI
6
8
  class Client
@@ -27,7 +29,9 @@ module BWAPI
27
29
 
28
30
  include BWAPI::Client::Brandwatch::Become
29
31
  include BWAPI::Client::Brandwatch::Clients
32
+ include BWAPI::Client::Brandwatch::LogLevel
30
33
  include BWAPI::Client::Brandwatch::PriceStructures
34
+ include BWAPI::Client::Brandwatch::UsageReport
31
35
  end
32
36
  end
33
37
  end
@@ -0,0 +1,17 @@
1
+ module BWAPI
2
+ class Client
3
+ module Brandwatch
4
+ # Loglevel module for brandwatch/log-level endpoint
5
+ module LogLevel
6
+ # Change the API LogLevel
7
+ #
8
+ # @param opts [Hash] options hash of parameters
9
+ # @option opts [String] logLevel for API2
10
+ # @return [Array] Returns the updated log level
11
+ def brandwatch_log_level(opts = {})
12
+ post 'brandwatch/log-level', opts
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,19 @@
1
+ module BWAPI
2
+ class Client
3
+ module Brandwatch
4
+ # usageReport module for brandwatch/usageReport endpoint
5
+ module UsageReport
6
+ # Get the Clients Mention Usage report
7
+ #
8
+ # @param clientId [Integer] Id of client
9
+ # @param startDate [DateTime] Report startDate
10
+ # @param endDate [DateTime] Report endDate
11
+ # @param opts [Hash] options hash of parameters
12
+ # @return [Hash] Returns usage report for active client
13
+ def brandwatch_usage_report(clientId, startDate, endDate, opts = {})
14
+ get "brandwatch/usageReport/client/#{clientId}/start/#{startDate}/end/#{endDate}", opts
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -35,7 +35,7 @@ module BWAPI
35
35
  # @param [Integer] display_id The display id
36
36
  # @param opts [Hash] options hash of parameters
37
37
  # @option opts [Integer] id The id of scene
38
- # @option opts String] name The name of the scene
38
+ # @option opts [String] name The name of the scene
39
39
  # @option opts [Integer] projectId The project id
40
40
  # @option opts [Integer] displayId The display id
41
41
  # @option opts [Hash] options Scene options
@@ -4,16 +4,17 @@ require 'bwapi/client/projects/data'
4
4
  require 'bwapi/client/projects/data_download'
5
5
  require 'bwapi/client/projects/demographics'
6
6
  require 'bwapi/client/projects/facebook_queries'
7
- require 'bwapi/client/projects/twitter_queries'
8
7
  require 'bwapi/client/projects/group'
9
- require 'bwapi/client/projects/signals'
10
- require 'bwapi/client/projects/summary'
11
- require 'bwapi/client/projects/sharing'
12
- require 'bwapi/client/projects/stream_dashboards'
13
8
  require 'bwapi/client/projects/queries'
9
+ require 'bwapi/client/projects/query/mentionfind'
14
10
  require 'bwapi/client/projects/query_groups'
15
11
  require 'bwapi/client/projects/rules'
12
+ require 'bwapi/client/projects/sharing'
13
+ require 'bwapi/client/projects/signals'
14
+ require 'bwapi/client/projects/stream_dashboards'
15
+ require 'bwapi/client/projects/summary'
16
16
  require 'bwapi/client/projects/tags'
17
+ require 'bwapi/client/projects/twitter_queries'
17
18
  require 'bwapi/client/projects/users'
18
19
  require 'bwapi/client/projects/workflow'
19
20
 
@@ -87,15 +88,16 @@ module BWAPI
87
88
  include BWAPI::Client::Projects::Demographics
88
89
  include BWAPI::Client::Projects::FacebookQueries
89
90
  include BWAPI::Client::Projects::Group
90
- include BWAPI::Client::Projects::TwitterQueries
91
- include BWAPI::Client::Projects::Signals
92
- include BWAPI::Client::Projects::Summary
93
- include BWAPI::Client::Projects::Sharing
94
- include BWAPI::Client::Projects::StreamDashboards
95
91
  include BWAPI::Client::Projects::Queries
92
+ include BWAPI::Client::Projects::Query::MentionFind
96
93
  include BWAPI::Client::Projects::QueryGroups
97
94
  include BWAPI::Client::Projects::Rules
95
+ include BWAPI::Client::Projects::Sharing
96
+ include BWAPI::Client::Projects::Signals
97
+ include BWAPI::Client::Projects::StreamDashboards
98
+ include BWAPI::Client::Projects::Summary
98
99
  include BWAPI::Client::Projects::Tags
100
+ include BWAPI::Client::Projects::TwitterQueries
99
101
  include BWAPI::Client::Projects::Users
100
102
  include BWAPI::Client::Projects::Workflow
101
103
  end
@@ -0,0 +1,21 @@
1
+ module BWAPI
2
+ class Client
3
+ module Projects
4
+ module Query
5
+ # mentionfind module for projects/project_id/query/query_id/mentionfind endpoint
6
+ module MentionFind
7
+ # Returns the mention for a specific URL
8
+ #
9
+ # @param project_id [Integer] Id of project
10
+ # @param query id [Integer] Id of the query
11
+ # @param opts [hash] options Hash of parameters
12
+ # @option opts [string] URL of the mention
13
+ # @return [Hash] Returns whether a URL is in a query
14
+ def mention_find(project_id, query_id, opts = {})
15
+ get "projects/#{project_id}/query/#{query_id}/mentionfind", opts
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -10,20 +10,22 @@ module BWAPI
10
10
  # @param projectId [Integer] Id of the existing project
11
11
  # @option opts [Integer] page Page of results to retrieve
12
12
  # @option opts [Integer] pageSize Results per page of results
13
- # @return [Hash] All signal groups for project
13
+ # @return [Hash] Returns All signal groups for project
14
14
  def signal_groups(project_id, opts = {})
15
15
  get "/projects/#{project_id}/signals/groups", opts
16
16
  end
17
17
 
18
18
  # Get a specific signal group
19
+ #
19
20
  # @param projectId [Integer] Id of project
20
21
  # @param groupId [Integer] Id of group
21
- # @return [Hash] specific signals group
22
+ # @return [Hash] Returns a specific signals group
22
23
  def get_signal_group(project_id, group_id)
23
24
  get "/projects/#{project_id}/signals/groups/#{group_id}"
24
25
  end
25
26
 
26
27
  # Create a new signal group
28
+ #
27
29
  # @param projectId [Integer] Project ID of the Signal Group to be updated
28
30
  # @param opts [Hash] options hash of parameters
29
31
  # @option opts [Integer] projectId Project ID of Signal Group
@@ -33,12 +35,13 @@ module BWAPI
33
35
  # @option opts [Date] lastModified Last modified date of the Signal Group
34
36
  # @option opts [Integer] id ID of Signal Group
35
37
  # @option opts [String] creator Creator of the Signal Group
36
- # @return [Hash] new signal group
38
+ # @return [Hash] Retuns the new signal group
37
39
  def create_signal_group(project_id, opts = {})
38
40
  post "/projects/#{project_id}/signals/groups", opts
39
41
  end
40
42
 
41
43
  # Update a signal group
44
+ #
42
45
  # @param projectId [Integer] Project ID of the Signal Group to be updated
43
46
  # @param groupId [Integer] Id of group
44
47
  # @param opts [Hash] options hash of parameters
@@ -49,18 +52,28 @@ module BWAPI
49
52
  # @option opts [Date] lastModified Last modified date of the Signal Group
50
53
  # @option opts [Integer] id ID of Signal Group
51
54
  # @option opts [String] creator Creator of the Signal Group
52
- # @return [Hash] updated signal group
55
+ # @return [Hash] Returns the updated signal group
53
56
  def update_signal_group(project_id, group_id, opts = {})
54
57
  put "/projects/#{project_id}/signals/groups/#{group_id}", opts
55
58
  end
56
59
 
57
60
  # Delete a signal group
61
+ #
58
62
  # @param projectId [Integer] Id of project
59
63
  # @param groupId [Integer] Id of group
60
- # @return [Hash] deleted signal group
64
+ # @return [Hash] Returns the deleted signal group
61
65
  def delete_signal_group(project_id, group_id)
62
66
  delete "/projects/#{project_id}/signals/groups/#{group_id}"
63
67
  end
68
+
69
+ # Get all signals for a specific group
70
+ #
71
+ # @param projectId [Integer] Id of project
72
+ # @param groupId [Integer] Id of group
73
+ # @return [Hash] Returns a specific signal group signals
74
+ def get_signal_group_signals(project_id, group_id)
75
+ get "/projects/#{project_id}/signals/groups/#{group_id}/signals"
76
+ end
64
77
  end
65
78
  end
66
79
  end
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: 10.0.0.pre.530
4
+ version: 10.0.0.pre.531
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
@@ -157,7 +157,9 @@ files:
157
157
  - lib/bwapi/client/brandwatch/clients.rb
158
158
  - lib/bwapi/client/brandwatch/clients/modules.rb
159
159
  - lib/bwapi/client/brandwatch/clients/users.rb
160
+ - lib/bwapi/client/brandwatch/log_level.rb
160
161
  - lib/bwapi/client/brandwatch/price_structures.rb
162
+ - lib/bwapi/client/brandwatch/usage_report.rb
161
163
  - lib/bwapi/client/client.rb
162
164
  - lib/bwapi/client/command_center.rb
163
165
  - lib/bwapi/client/command_center/client.rb
@@ -213,6 +215,7 @@ files:
213
215
  - lib/bwapi/client/projects/queries/backfill.rb
214
216
  - lib/bwapi/client/projects/queries/date_range.rb
215
217
  - lib/bwapi/client/projects/queries/mentions.rb
218
+ - lib/bwapi/client/projects/query/mentionfind.rb
216
219
  - lib/bwapi/client/projects/query_groups.rb
217
220
  - lib/bwapi/client/projects/rules.rb
218
221
  - lib/bwapi/client/projects/rules/backfill.rb