bwapi 10.0.0.pre.531 → 10.0.0.pre.543
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 +8 -8
- data/lib/bwapi/client/brandwatch/clients.rb +2 -0
- data/lib/bwapi/client/brandwatch/clients/command_center.rb +20 -0
- data/lib/bwapi/client/brandwatch/clients/command_center/limits.rb +33 -0
- data/lib/bwapi/client/brandwatch/clients/command_center/scene_types.rb +26 -0
- data/lib/bwapi/client/brandwatch/clients/command_center/themes.rb +26 -0
- data/lib/bwapi/client/brandwatch/clients/command_center/users.rb +30 -0
- data/lib/bwapi/client/brandwatch/clients/command_center/users/access.rb +28 -0
- data/lib/bwapi/client/brandwatch/command_center.rb +14 -0
- data/lib/bwapi/client/brandwatch/command_center/scene_types.rb +31 -0
- data/lib/bwapi/client/brandwatch/command_center/themes.rb +17 -0
- data/lib/bwapi/client/command_center.rb +12 -0
- data/lib/bwapi/client/command_center/category_colours.rb +15 -0
- data/lib/bwapi/client/command_center/colour_palette.rb +22 -0
- data/lib/bwapi/client/command_center/display_access.rb +12 -0
- data/lib/bwapi/client/command_center/display_access/users.rb +14 -0
- data/lib/bwapi/client/command_center/display_access/users/access.rb +21 -0
- data/lib/bwapi/client/command_center/projects.rb +16 -0
- data/lib/bwapi/client/command_center/projects/category_colours.rb +45 -0
- data/lib/bwapi/client/command_center/projects/data.rb +21 -0
- data/lib/bwapi/client/command_center/projects/tag_colours.rb +45 -0
- data/lib/bwapi/client/command_center/query_colours.rb +36 -0
- data/lib/bwapi/client/command_center/scene_types.rb +3 -3
- data/lib/bwapi/client/command_center/tag_colours.rb +15 -0
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWU5NDQ0NzRhMmZhMDczMjE3NzUwY2JmZDhkYjI4NTcxMWI0NDU2Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDVkOWZkMDgyYjMyODRmMTI3MTFlZDk5ZmMxZGZkOTNiOWQ1YWJiMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2JjNWU2Mzg4YzMyOTkzMWRhMDczMTY5MWQ3ZTMyZDM1YjFlNjQ5MzQ3ZTEx
|
10
|
+
Mjg5NzM0YjI4MTdmZmQ2ZjlhMWVjODg5ODQ4NDFmOTBjMTZhMmQ1ZWZhYzE3
|
11
|
+
ZTVkM2JiOTYxYTEzYzliNzc4ZTY1NjA3YjZlNTA5ODJjMmExNmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWNmYjVkNzNiMzVhNzljMDhlMGE3ZjNiMjA0ZTAzMDM4MWYxMzg2YTMyZjc3
|
14
|
+
NjlmZGMxYTBkYTdmMGZkNmU1MGVkN2Q4OTI0YzY3MDJjZGIzNDYyNjAyMjgw
|
15
|
+
MTAwNGI3OWQzNmViMmYxZDRhY2VkZTg2NjYzNzE0ZjhmOTE1NmM=
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'bwapi/client/brandwatch/clients/command_center'
|
1
2
|
require 'bwapi/client/brandwatch/clients/users'
|
2
3
|
require 'bwapi/client/brandwatch/clients/modules'
|
3
4
|
|
@@ -94,6 +95,7 @@ module BWAPI
|
|
94
95
|
put "brandwatch/clients/#{client_id}", opts
|
95
96
|
end
|
96
97
|
|
98
|
+
include BWAPI::Client::Brandwatch::Clients::CommandCenter
|
97
99
|
include BWAPI::Client::Brandwatch::Clients::Users
|
98
100
|
include BWAPI::Client::Brandwatch::Clients::Modules
|
99
101
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'bwapi/client/brandwatch/clients/command_center/limits'
|
2
|
+
require 'bwapi/client/brandwatch/clients/command_center/scene_types'
|
3
|
+
require 'bwapi/client/brandwatch/clients/command_center/themes'
|
4
|
+
require 'bwapi/client/brandwatch/clients/command_center/users'
|
5
|
+
|
6
|
+
module BWAPI
|
7
|
+
class Client
|
8
|
+
module Brandwatch
|
9
|
+
module Clients
|
10
|
+
# CommandCenter module for brandwatch/client/{client_id}/commandcenter endpoints
|
11
|
+
module CommandCenter
|
12
|
+
include BWAPI::Client::Brandwatch::Clients::CommandCenter::Limits
|
13
|
+
include BWAPI::Client::Brandwatch::Clients::CommandCenter::SceneTypes
|
14
|
+
include BWAPI::Client::Brandwatch::Clients::CommandCenter::Themes
|
15
|
+
include BWAPI::Client::Brandwatch::Clients::CommandCenter::Users
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Brandwatch
|
4
|
+
module Clients
|
5
|
+
module CommandCenter
|
6
|
+
# Limits module for brandwatch/client/{client_id}/commandcenter/limits endpoints
|
7
|
+
module Limits
|
8
|
+
# Fetch configured limits for a Vizia client
|
9
|
+
#
|
10
|
+
# TODO: Add parameters documentation
|
11
|
+
def brandwatch_vizia_limits(client_id)
|
12
|
+
get "/brandwatch/clients/#{client_id}/commandcenter/limits"
|
13
|
+
end
|
14
|
+
|
15
|
+
# Create limits for a Vizia client
|
16
|
+
#
|
17
|
+
# TODO: Add parameters documentation
|
18
|
+
def brandwatch_create_vizia_limits(client_id, opts = {})
|
19
|
+
post "/brandwatch/clients/#{client_id}/commandcenter/limits", opts
|
20
|
+
end
|
21
|
+
|
22
|
+
# Update limits for a Vizia client
|
23
|
+
#
|
24
|
+
# TODO: Add parameters documentation
|
25
|
+
def brandwatch_update_vizia_limits(client_id, opts = {})
|
26
|
+
put "/brandwatch/clients/#{client_id}/commandcenter/limits", opts
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Brandwatch
|
4
|
+
module Clients
|
5
|
+
module CommandCenter
|
6
|
+
# SceneTypes module for brandwatch/client/{client_id}/commandcenter/scenetypes endpoints
|
7
|
+
module SceneTypes
|
8
|
+
# Fetch all scene types enabled for given client
|
9
|
+
#
|
10
|
+
# TODO: Add parameters documentation
|
11
|
+
def brandwatch_scene_types(client_id)
|
12
|
+
get "/brandwatch/clients/#{client_id}/commandcenter/scenetypes"
|
13
|
+
end
|
14
|
+
|
15
|
+
# Alter Vizia scene types enabled for client
|
16
|
+
#
|
17
|
+
# TODO: Add parameters documentation
|
18
|
+
def brandwatch_update_scene_type(client_id, opts = {})
|
19
|
+
put "/brandwatch/clients/#{client_id}/commandcenter/scenetypes", opts
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Brandwatch
|
4
|
+
module Clients
|
5
|
+
module CommandCenter
|
6
|
+
# Themes module for brandwatch/client/{client_id}/commandcenter/themes endpoints
|
7
|
+
module Themes
|
8
|
+
# Get Vizia themes enabled for client
|
9
|
+
#
|
10
|
+
# TODO: Add parameters documentation
|
11
|
+
def brandwatch_themes(client_id)
|
12
|
+
get "brandwatch/client/#{client_id}/commandcenter/themes"
|
13
|
+
end
|
14
|
+
|
15
|
+
# Alter Vizia themes enabled for client
|
16
|
+
#
|
17
|
+
# TODO: Add parameters documentation
|
18
|
+
def brandwatch_update_themes(client_id, opts = {})
|
19
|
+
get "brandwatch/client/#{client_id}/commandcenter/themes", opts
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'bwapi/client/brandwatch/clients/command_center/users/access'
|
2
|
+
|
3
|
+
module BWAPI
|
4
|
+
class Client
|
5
|
+
module Brandwatch
|
6
|
+
module Clients
|
7
|
+
module CommandCenter
|
8
|
+
# Users module for brandwatch/client/{client_id}/commandcenter/users endpoints
|
9
|
+
module Users
|
10
|
+
# Fetch Vizia access levels for all users in client
|
11
|
+
#
|
12
|
+
# TODO: Add parameters documentation
|
13
|
+
def brandwatch_users_access_levels(client_id)
|
14
|
+
get "brandwatch/client/#{client_id}/commandcenter/users"
|
15
|
+
end
|
16
|
+
|
17
|
+
# Fetch a single user's Vizia access level
|
18
|
+
#
|
19
|
+
# TODO: Add parameters documentation
|
20
|
+
def brandwatch_user_access_level(client_id, user_id)
|
21
|
+
get "brandwatch/client/#{client_id}/commandcenter/users/#{user_id}"
|
22
|
+
end
|
23
|
+
|
24
|
+
include BWAPI::Client::Brandwatch::Clients::CommandCenter::Users::Access
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Brandwatch
|
4
|
+
module Clients
|
5
|
+
module CommandCenter
|
6
|
+
module Users
|
7
|
+
# Access module for brandwatch/client/{client_id}/commandcenter/users/{user_id}/access endpoints
|
8
|
+
module Access
|
9
|
+
# Update a user's Vizia access level
|
10
|
+
#
|
11
|
+
# TODO: Add parameters documentation
|
12
|
+
def brandwatch_update_user_access_level(client_id, user_id, access_level)
|
13
|
+
put "brandwatch/client/#{client_id}/commandcenter/users/#{user_id}/access/#{access_level}"
|
14
|
+
end
|
15
|
+
|
16
|
+
# Revoke a user's Vizia access
|
17
|
+
#
|
18
|
+
# TODO: Add parameters documentation
|
19
|
+
def brandwatch_delete_user_access_level(client_id, user_id, access_level)
|
20
|
+
delete "brandwatch/client/#{client_id}/commandcenter/users/#{user_id}/access/#{access_level}"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'bwapi/client/brandwatch/command_center/scene_types'
|
2
|
+
require 'bwapi/client/brandwatch/command_center/themes'
|
3
|
+
|
4
|
+
module BWAPI
|
5
|
+
class Client
|
6
|
+
module Brandwatch
|
7
|
+
# CommandCenter module for brandwatch/commandcenter endpoints
|
8
|
+
module CommandCenter
|
9
|
+
include BWAPI::Client::Brandwatch::CommandCenter::SceneTypes
|
10
|
+
include BWAPI::Client::Brandwatch::CommandCenter::Themes
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Brandwatch
|
4
|
+
module CommandCenter
|
5
|
+
# SceneTypes module for brandwatch/commandcenter/scenetypes endpoints
|
6
|
+
module SceneTypes
|
7
|
+
# Fetch all supported parent scene types
|
8
|
+
#
|
9
|
+
# TODO: Add parameters documentation
|
10
|
+
def brandwatch_all_scene_types
|
11
|
+
get 'brandwatch/commandcenter/scenetypes'
|
12
|
+
end
|
13
|
+
|
14
|
+
# Fetch a scene type
|
15
|
+
#
|
16
|
+
# TODO: Add parameters documentation
|
17
|
+
def brandwatch_scene_type(scene_type_id)
|
18
|
+
get "brandwatch/commandcenter/scenetypes/#{scene_type_id}"
|
19
|
+
end
|
20
|
+
|
21
|
+
# Fetch all sub scene types for a scene type
|
22
|
+
#
|
23
|
+
# TODO: Add parameters documentation
|
24
|
+
def brandwatch_scene_type_with_sub_scenes(scene_type_id)
|
25
|
+
get "brandwatch/commandcenter/scenetypes/#{scene_type_id}/subscenes"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Brandwatch
|
4
|
+
module CommandCenter
|
5
|
+
# Themes module for brandwatch/commandcenter/themes endpoints
|
6
|
+
module Themes
|
7
|
+
# Get supported Vizia themes
|
8
|
+
#
|
9
|
+
# @return [Hash] All themes
|
10
|
+
def brandwatch_all_themes
|
11
|
+
get 'brandwatch/commandcenter/themes'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,6 +1,12 @@
|
|
1
|
+
require 'bwapi/client/command_center/category_colours'
|
1
2
|
require 'bwapi/client/command_center/client'
|
3
|
+
require 'bwapi/client/command_center/colour_palette'
|
4
|
+
require 'bwapi/client/command_center/display_access'
|
2
5
|
require 'bwapi/client/command_center/displays'
|
6
|
+
require 'bwapi/client/command_center/projects'
|
7
|
+
require 'bwapi/client/command_center/query_colours'
|
3
8
|
require 'bwapi/client/command_center/scene_types'
|
9
|
+
require 'bwapi/client/command_center/tag_colours'
|
4
10
|
require 'bwapi/client/command_center/themes'
|
5
11
|
require 'bwapi/client/command_center/users'
|
6
12
|
|
@@ -8,9 +14,15 @@ module BWAPI
|
|
8
14
|
class Client
|
9
15
|
# CommandCenter module for commandcenter endpoints
|
10
16
|
module CommandCenter
|
17
|
+
include BWAPI::Client::CommandCenter::CategoryColours
|
11
18
|
include BWAPI::Client::CommandCenter::Client
|
19
|
+
include BWAPI::Client::CommandCenter::ColourPalette
|
20
|
+
include BWAPI::Client::CommandCenter::DisplayAccess
|
12
21
|
include BWAPI::Client::CommandCenter::Displays
|
22
|
+
include BWAPI::Client::CommandCenter::Projects
|
23
|
+
include BWAPI::Client::CommandCenter::QueryColours
|
13
24
|
include BWAPI::Client::CommandCenter::SceneTypes
|
25
|
+
include BWAPI::Client::CommandCenter::TagColours
|
14
26
|
include BWAPI::Client::CommandCenter::Themes
|
15
27
|
include BWAPI::Client::CommandCenter::Users
|
16
28
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module CommandCenter
|
4
|
+
# CategoryColours module for commandcenter/categoryColours endpoints
|
5
|
+
module CategoryColours
|
6
|
+
# Get colours defined for categories in current client
|
7
|
+
#
|
8
|
+
# TODO: Add parameters documentation
|
9
|
+
def all_category_colours
|
10
|
+
get 'commandcenter/categoryColours'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module CommandCenter
|
4
|
+
# ColourPalette module for commandcenter/colourPalette endpoints
|
5
|
+
module ColourPalette
|
6
|
+
# Get the colour palette for the current client
|
7
|
+
#
|
8
|
+
# TODO: Add parameters documentation
|
9
|
+
def colour_palette
|
10
|
+
get '/commandcenter/colourPalette'
|
11
|
+
end
|
12
|
+
|
13
|
+
# Update the colour palette for the current client
|
14
|
+
#
|
15
|
+
# TODO: Add parameters documentation
|
16
|
+
def update_colour_palette(opts = {})
|
17
|
+
put '/commandcenter/colourPalette', opts
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,12 @@
|
|
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
|
@@ -0,0 +1,14 @@
|
|
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
|
@@ -0,0 +1,21 @@
|
|
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
|
@@ -0,0 +1,16 @@
|
|
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
|
@@ -0,0 +1,45 @@
|
|
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)
|
25
|
+
post "/commandcenter/projects/#{project_id}/categoryColours"
|
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)
|
32
|
+
put "/commandcenter/projects/#{project_id}/categoryColours/#{category_id}"
|
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
|
@@ -0,0 +1,21 @@
|
|
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
|
@@ -0,0 +1,45 @@
|
|
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)
|
25
|
+
post "/commandcenter/projects/#{project_id}/tagColours"
|
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)
|
32
|
+
put "/commandcenter/projects/#{project_id}/tagColours/#{tag_name}"
|
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
|
@@ -0,0 +1,36 @@
|
|
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,7 +1,7 @@
|
|
1
1
|
module BWAPI
|
2
2
|
class Client
|
3
3
|
module CommandCenter
|
4
|
-
#
|
4
|
+
# SceneTypes module for commandcenter/scenetypes endpoints
|
5
5
|
module SceneTypes
|
6
6
|
# Get the scene types visible to the user
|
7
7
|
#
|
@@ -18,12 +18,12 @@ module BWAPI
|
|
18
18
|
get "commandcenter/scenetypes/#{scene_type_id}"
|
19
19
|
end
|
20
20
|
|
21
|
-
# Get an existing scene type
|
21
|
+
# Get an existing scene type sub scene types
|
22
22
|
#
|
23
23
|
# @param [Integer] scene_type_id the scene type id
|
24
24
|
# @return [Hash] Specific scene type with sub scences
|
25
25
|
def get_scene_type_with_sub_scenes(scene_type_id)
|
26
|
-
get "commandcenter/scenetypes/#{scene_type_id}"
|
26
|
+
get "commandcenter/scenetypes/#{scene_type_id}/subscenes"
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -0,0 +1,15 @@
|
|
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
|
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: 10.0.0.pre.
|
4
|
+
version: 10.0.0.pre.543
|
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-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -155,14 +155,28 @@ files:
|
|
155
155
|
- lib/bwapi/client/brandwatch.rb
|
156
156
|
- lib/bwapi/client/brandwatch/become.rb
|
157
157
|
- lib/bwapi/client/brandwatch/clients.rb
|
158
|
+
- lib/bwapi/client/brandwatch/clients/command_center.rb
|
159
|
+
- lib/bwapi/client/brandwatch/clients/command_center/limits.rb
|
160
|
+
- lib/bwapi/client/brandwatch/clients/command_center/scene_types.rb
|
161
|
+
- lib/bwapi/client/brandwatch/clients/command_center/themes.rb
|
162
|
+
- lib/bwapi/client/brandwatch/clients/command_center/users.rb
|
163
|
+
- lib/bwapi/client/brandwatch/clients/command_center/users/access.rb
|
158
164
|
- lib/bwapi/client/brandwatch/clients/modules.rb
|
159
165
|
- lib/bwapi/client/brandwatch/clients/users.rb
|
166
|
+
- lib/bwapi/client/brandwatch/command_center.rb
|
167
|
+
- lib/bwapi/client/brandwatch/command_center/scene_types.rb
|
168
|
+
- lib/bwapi/client/brandwatch/command_center/themes.rb
|
160
169
|
- lib/bwapi/client/brandwatch/log_level.rb
|
161
170
|
- lib/bwapi/client/brandwatch/price_structures.rb
|
162
171
|
- lib/bwapi/client/brandwatch/usage_report.rb
|
163
172
|
- lib/bwapi/client/client.rb
|
164
173
|
- lib/bwapi/client/command_center.rb
|
174
|
+
- lib/bwapi/client/command_center/category_colours.rb
|
165
175
|
- lib/bwapi/client/command_center/client.rb
|
176
|
+
- lib/bwapi/client/command_center/colour_palette.rb
|
177
|
+
- lib/bwapi/client/command_center/display_access.rb
|
178
|
+
- lib/bwapi/client/command_center/display_access/users.rb
|
179
|
+
- lib/bwapi/client/command_center/display_access/users/access.rb
|
166
180
|
- lib/bwapi/client/command_center/displays.rb
|
167
181
|
- lib/bwapi/client/command_center/displays/events.rb
|
168
182
|
- lib/bwapi/client/command_center/displays/messages.rb
|
@@ -170,7 +184,13 @@ files:
|
|
170
184
|
- lib/bwapi/client/command_center/displays/screens.rb
|
171
185
|
- lib/bwapi/client/command_center/displays/users.rb
|
172
186
|
- lib/bwapi/client/command_center/displays/users/access.rb
|
187
|
+
- lib/bwapi/client/command_center/projects.rb
|
188
|
+
- lib/bwapi/client/command_center/projects/category_colours.rb
|
189
|
+
- lib/bwapi/client/command_center/projects/data.rb
|
190
|
+
- lib/bwapi/client/command_center/projects/tag_colours.rb
|
191
|
+
- lib/bwapi/client/command_center/query_colours.rb
|
173
192
|
- lib/bwapi/client/command_center/scene_types.rb
|
193
|
+
- lib/bwapi/client/command_center/tag_colours.rb
|
174
194
|
- lib/bwapi/client/command_center/themes.rb
|
175
195
|
- lib/bwapi/client/command_center/users.rb
|
176
196
|
- lib/bwapi/client/command_center/users/access.rb
|