bwapi 10.0.0.pre.549 → 10.0.0

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.
Files changed (67) hide show
  1. checksums.yaml +5 -13
  2. data/.editorconfig +1 -1
  3. data/.gitignore +1 -1
  4. data/lib/bwapi/client.rb +3 -26
  5. data/lib/bwapi/client/admin.rb +0 -2
  6. data/lib/bwapi/client/brandwatch.rb +0 -6
  7. data/lib/bwapi/client/brandwatch/become.rb +2 -0
  8. data/lib/bwapi/client/brandwatch/clients.rb +8 -2
  9. data/lib/bwapi/client/brandwatch/clients/users.rb +2 -0
  10. data/lib/bwapi/client/command_center.rb +0 -12
  11. data/lib/bwapi/client/command_center/displays/scenes.rb +1 -1
  12. data/lib/bwapi/client/command_center/scene_types.rb +3 -3
  13. data/lib/bwapi/client/oauth.rb +1 -2
  14. data/lib/bwapi/client/projects.rb +11 -13
  15. data/lib/bwapi/client/projects/{bulk_actions.rb → bulkactions.rb} +2 -2
  16. data/lib/bwapi/client/projects/{bulk_actions → bulkactions}/author.rb +0 -0
  17. data/lib/bwapi/client/projects/{bulk_actions → bulkactions}/mentions.rb +0 -0
  18. data/lib/bwapi/client/projects/data.rb +0 -20
  19. data/lib/bwapi/client/projects/data/mentions.rb +2 -32
  20. data/lib/bwapi/client/projects/signals/groups.rb +5 -18
  21. data/lib/bwapi/client/user.rb +0 -2
  22. data/lib/bwapi/configuration.rb +2 -3
  23. data/lib/bwapi/default.rb +3 -7
  24. data/lib/bwapi/error.rb +2 -0
  25. data/spec/bwapi/client_spec.rb +167 -29
  26. metadata +30 -72
  27. data/lib/bwapi/client/admin/demographics.rb +0 -17
  28. data/lib/bwapi/client/aggregates.rb +0 -13
  29. data/lib/bwapi/client/author.rb +0 -56
  30. data/lib/bwapi/client/brandwatch/clients/command_center.rb +0 -20
  31. data/lib/bwapi/client/brandwatch/clients/command_center/limits.rb +0 -33
  32. data/lib/bwapi/client/brandwatch/clients/command_center/scene_types.rb +0 -26
  33. data/lib/bwapi/client/brandwatch/clients/command_center/themes.rb +0 -26
  34. data/lib/bwapi/client/brandwatch/clients/command_center/users.rb +0 -30
  35. data/lib/bwapi/client/brandwatch/clients/command_center/users/access.rb +0 -28
  36. data/lib/bwapi/client/brandwatch/command_center.rb +0 -14
  37. data/lib/bwapi/client/brandwatch/command_center/scene_types.rb +0 -31
  38. data/lib/bwapi/client/brandwatch/command_center/themes.rb +0 -17
  39. data/lib/bwapi/client/brandwatch/log_level.rb +0 -17
  40. data/lib/bwapi/client/brandwatch/price_structures.rb +0 -45
  41. data/lib/bwapi/client/brandwatch/usage_report.rb +0 -19
  42. data/lib/bwapi/client/command_center/category_colours.rb +0 -15
  43. data/lib/bwapi/client/command_center/colour_palette.rb +0 -22
  44. data/lib/bwapi/client/command_center/display_access.rb +0 -12
  45. data/lib/bwapi/client/command_center/display_access/users.rb +0 -14
  46. data/lib/bwapi/client/command_center/display_access/users/access.rb +0 -21
  47. data/lib/bwapi/client/command_center/projects.rb +0 -16
  48. data/lib/bwapi/client/command_center/projects/category_colours.rb +0 -45
  49. data/lib/bwapi/client/command_center/projects/data.rb +0 -21
  50. data/lib/bwapi/client/command_center/projects/tag_colours.rb +0 -45
  51. data/lib/bwapi/client/command_center/query_colours.rb +0 -36
  52. data/lib/bwapi/client/command_center/tag_colours.rb +0 -15
  53. data/lib/bwapi/client/dimensions.rb +0 -13
  54. data/lib/bwapi/client/projects/data/audience.rb +0 -21
  55. data/lib/bwapi/client/projects/data/audience_activity.rb +0 -21
  56. data/lib/bwapi/client/projects/data/channel_metrics.rb +0 -21
  57. data/lib/bwapi/client/projects/data/emoticons.rb +0 -23
  58. data/lib/bwapi/client/projects/data/hashtags.rb +0 -23
  59. data/lib/bwapi/client/projects/data/headlines.rb +0 -20
  60. data/lib/bwapi/client/projects/data/impressions.rb +0 -21
  61. data/lib/bwapi/client/projects/data/mentioned_authors.rb +0 -23
  62. data/lib/bwapi/client/projects/data/owner_activity.rb +0 -21
  63. data/lib/bwapi/client/projects/data/urls.rb +0 -23
  64. data/lib/bwapi/client/projects/query/mentionfind.rb +0 -21
  65. data/lib/bwapi/client/user/instagram_credentials.rb +0 -32
  66. data/spec/bwapi/configuration_spec.rb +0 -499
  67. data/spec/bwapi/default_spec.rb +0 -242
@@ -1,12 +0,0 @@
1
- require 'bwapi/client/command_center/display_access/users'
2
-
3
- module BWAPI
4
- class Client
5
- module CommandCenter
6
- # DisplayAccess module for commandcenter/displayaccess endpoints
7
- module DisplayAccess
8
- include BWAPI::Client::CommandCenter::DisplayAccess::Users
9
- end
10
- end
11
- end
12
- end
@@ -1,14 +0,0 @@
1
- require 'bwapi/client/command_center/display_access/users/access'
2
-
3
- module BWAPI
4
- class Client
5
- module CommandCenter
6
- module DisplayAccess
7
- # Users module for commandcenter/displayaccess/users endpoints
8
- module Users
9
- include BWAPI::Client::CommandCenter::DisplayAccess::Users::Access
10
- end
11
- end
12
- end
13
- end
14
- end
@@ -1,21 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module CommandCenter
4
- module DisplayAccess
5
- module Users
6
- # Access module for commandcenter/displayaccess/users/{user_id}/access endpoints
7
- module Access
8
- # Alter specific user's access to multiple specified displays
9
- #
10
- # @param [Integer] user_id the user id
11
- # @param [Integer] access_level the access level
12
- # TODO: Add parameters documentation
13
- def update_displays_user_access_level(user_id, access_level, opts = {})
14
- put "commandcenter/displayaccess/users/#{user_id}/access/#{access_level}", opts
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
21
- end
@@ -1,16 +0,0 @@
1
- require 'bwapi/client/command_center/projects/category_colours'
2
- require 'bwapi/client/command_center/projects/data'
3
- require 'bwapi/client/command_center/projects/tag_colours'
4
-
5
- module BWAPI
6
- class Client
7
- module CommandCenter
8
- # Projects module for commandcenter/projects endpoints
9
- module Projects
10
- include BWAPI::Client::CommandCenter::Projects::CategoryColours
11
- include BWAPI::Client::CommandCenter::Projects::Data
12
- include BWAPI::Client::CommandCenter::Projects::TagColours
13
- end
14
- end
15
- end
16
- end
@@ -1,45 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module CommandCenter
4
- module Projects
5
- # CategoryColours module for commandcenter/projects/{project_id}/categoryColours endpoints
6
- module CategoryColours
7
- # Get colours defined for categories in given project
8
- #
9
- # TODO: Add parameters documentation
10
- def category_colours(project_id)
11
- get "/commandcenter/projects/#{project_id}/categoryColours"
12
- end
13
-
14
- # Get colour defined for given category
15
- #
16
- # TODO: Add parameters documentation
17
- def category_colour(project_id, category_id)
18
- get "/commandcenter/projects/#{project_id}/categoryColours/#{category_id}"
19
- end
20
-
21
- # Define the colour for a category
22
- #
23
- # TODO: Add parameters documentation
24
- def create_category_colour(project_id, opts = {})
25
- post "/commandcenter/projects/#{project_id}/categoryColours", opts
26
- end
27
-
28
- # Update the colour for a category
29
- #
30
- # TODO: Add parameters documentation
31
- def update_category_colour(project_id, category_id, opts = {})
32
- put "/commandcenter/projects/#{project_id}/categoryColours/#{category_id}", opts
33
- end
34
-
35
- # Remove the colour for a category
36
- #
37
- # TODO: Add parameters documentation
38
- def delete_category_colour(project_id, category_id)
39
- delete "/commandcenter/projects/#{project_id}/categoryColours/#{category_id}"
40
- end
41
- end
42
- end
43
- end
44
- end
45
- end
@@ -1,21 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module CommandCenter
4
- module Projects
5
- # Data module for commandcenter/projects/{project_id}/data endpoints
6
- module Data
7
- # Retrieve aggregate data and sample mentions broken down by specified dimensions
8
- #
9
- # @param project_id [Integer] Id of project
10
- # @param aggregate [String] Aggregate value
11
- # @param dimension_one [String] Dimension 1 value
12
- # @param dimension_two [String] Dimension 2 value
13
- # TODO: Add parameters documentation
14
- def command_center_data(project_id, aggregate, dimension_one, dimension_two, opts = {})
15
- get "commandcenter/projects/#{project_id}/data/#{aggregate}/#{dimension_one}/#{dimension_two}", opts
16
- end
17
- end
18
- end
19
- end
20
- end
21
- end
@@ -1,45 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module CommandCenter
4
- module Projects
5
- # TagColours module for commandcenter/projects/{project_id}/tagColours endpoints
6
- module TagColours
7
- # Get colours defined for tags in given project
8
- #
9
- # TODO: Add parameters documentation
10
- def tag_colours(project_id)
11
- get "/commandcenter/projects/#{project_id}/tagColours"
12
- end
13
-
14
- # Get colour defined for given tag
15
- #
16
- # TODO: Add parameters documentation
17
- def tag_colour(project_id, tag_name)
18
- get "/commandcenter/projects/#{project_id}/tagColours/#{tag_name}"
19
- end
20
-
21
- # Define the colour for a tag
22
- #
23
- # TODO: Add parameters documentation
24
- def create_tag_colour(project_id, opts = {})
25
- post "/commandcenter/projects/#{project_id}/tagColours", opts
26
- end
27
-
28
- # Update the colour for a tag
29
- #
30
- # TODO: Add parameters documentation
31
- def update_tag_colour(project_id, tag_name, opts = {})
32
- put "/commandcenter/projects/#{project_id}/tagColours/#{tag_name}", opts
33
- end
34
-
35
- # Remove the colour for a tag
36
- #
37
- # TODO: Add parameters documentation
38
- def delete_tag_colour(project_id, tag_name)
39
- delete "/commandcenter/projects/#{project_id}/tagColours/#{tag_name}"
40
- end
41
- end
42
- end
43
- end
44
- end
45
- end
@@ -1,36 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module CommandCenter
4
- # QueryColours module for commandcenter/queryColours endpoints
5
- module QueryColours
6
- # Get colours defined for queries in current client
7
- #
8
- # TODO: Add parameters documentation
9
- def query_colours
10
- get 'commandcenter/queryColours'
11
- end
12
-
13
- # Define the colour for a query
14
- #
15
- # TODO: Add parameters documentation
16
- def create_query_colour(opts = {})
17
- post 'commandcenter/queryColours', opts
18
- end
19
-
20
- # Get colours defined for queries in current client
21
- #
22
- # TODO: Add parameters documentation
23
- def update_query_colour(query_id)
24
- put "/commandcenter/queryColours/#{query_id}"
25
- end
26
-
27
- # Get colours defined for queries in current client
28
- #
29
- # TODO: Add parameters documentation
30
- def delete_query_colour(query_id)
31
- delete "/commandcenter/queryColours/#{query_id}"
32
- end
33
- end
34
- end
35
- end
36
- end
@@ -1,15 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module CommandCenter
4
- # TagColours module for commandcenter/tagColours endpoints
5
- module TagColours
6
- # Get colours defined for tags in current client
7
- #
8
- # TODO: Add parameters documentation
9
- def all_tag_colours
10
- get 'commandcenter/tagColours'
11
- end
12
- end
13
- end
14
- end
15
- end
@@ -1,13 +0,0 @@
1
- module BWAPI
2
- class Client
3
- # Dimemsions module for dimensions endpoint
4
- module Dimensions
5
- # Get the currently supported dimensions
6
- #
7
- # @return [array] Current dimensions
8
- def dimensions
9
- get 'dimensions'
10
- end
11
- end
12
- end
13
- end
@@ -1,21 +0,0 @@
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
@@ -1,21 +0,0 @@
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
@@ -1,21 +0,0 @@
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
@@ -1,23 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Projects
4
- module Data
5
- # Emoticons module for the /projects/{project_id}/data/emoticons endpoint
6
- module Emoticons
7
- # Get top n emoticons
8
- #
9
- # @param project_id [Integer] Id of project
10
- # @param opts [Hash] options hash of parameters
11
- # @option opts [Hash] filter The filters to apply
12
- # @option opts [Integer] limit The limit to return
13
- # @option opts [String] orderBy Parameter to sort by
14
- # @option opts [String] orderDirection Direction of sort
15
- # @return [array] top n emoticons based on parameter passed
16
- def data_emoticons(project_id, opts = {})
17
- get "/projects/#{project_id}/data/emoticons", opts
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,23 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Projects
4
- module Data
5
- # Hashtags module for the /projects/{project_id}/data/hashtags endpoint
6
- module Hashtags
7
- # Get top n hashtags
8
- #
9
- # @param project_id [Integer] Id of project
10
- # @param opts [Hash] options hash of parameters
11
- # @option opts [Hash] filter The filters to apply
12
- # @option opts [Integer] limit The limit to return
13
- # @option opts [String] orderBy Parameter to sort by
14
- # @option opts [String] orderDirection Direction of sort
15
- # @return [array] top n hashtags based on parameter passed
16
- def data_hashtags(project_id, opts = {})
17
- get "/projects/#{project_id}/data/hashtags", opts
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,20 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Projects
4
- module Data
5
- # Headlines module for projects/data/headlines endpoints
6
- module Headlines
7
- # Get mention headlines that fall within the submitted filters
8
- #
9
- # @param project_id [Integer] Id of project
10
- # @param opts [Hash] options hash of parameters
11
- # @option opts [Hash] filter The filters to apply
12
- # @return [Hash] All Mention headlines
13
- def data_headlines(project_id, opts = {})
14
- get "projects/#{project_id}/data/headlines", opts
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
@@ -1,21 +0,0 @@
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
@@ -1,23 +0,0 @@
1
- module BWAPI
2
- class Client
3
- module Projects
4
- module Data
5
- # MentionedAuthors module for the /projects/{project_id}/data/mentionedauthors endpoint
6
- module MentionedAuthors
7
- # Get top n mentioned authors
8
- #
9
- # @param project_id [Integer] Id of project
10
- # @param opts [Hash] options hash of parameters
11
- # @option opts [Hash] filter The filters to apply
12
- # @option opts [Integer] limit The limit to return
13
- # @option opts [String] orderBy Parameter to sort by
14
- # @option opts [String] orderDirection Direction of sort
15
- # @return [array] top n mentioned_authors based on parameter passed
16
- def data_mentioned_authors(project_id, opts = {})
17
- get "/projects/#{project_id}/data/mentionedauthors", opts
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,21 +0,0 @@
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