bwapi 11.0.1.pre.557 → 11.0.1.pre.559
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
|
-
|
4
|
+
NzBmNTNkY2RkNTYwZTg0MWRlODQ1Mjc0ZmQwZmIzMjcxMzNiZDlhYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTliYWVkMWM2ZTdmZjgwZDliMGRkMTczMmVhODE2ODVhMmIxZmIyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWIyNGMwOTA1MTEwZmM2Y2I1OGE1ZDQ0ZTgxMDBkZjI4YjUwN2YwZTIzYmU2
|
10
|
+
ZmQ0MTExNGUzMTc1ZGJiYmM1YmQ0ZWRhYmVkMGQzNTkxNzdhODRmZjVlZmIw
|
11
|
+
Nzc2YzQ5NjQyNmMyYTBmNjJkOTc0MzliYTMzNGEyZWU4N2QxNWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjU5ZTIyMGViYzQ1Zjc0NjY1N2ZmOTA5MGJmNjY3MWEyMmFmZjdlY2UyODkz
|
14
|
+
NmQ5NTRhNjQzNWU4Yjc0OGY5NDJjYTgxZTk3YjAyMmUyMmU5MTdkOWI2NzI2
|
15
|
+
MDFkNmQ4M2NkMWMyNDJiNzMyNTdiYTFiYWY4NzVkOGE3NmI2ZDM=
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'bwapi/client/brandwatch/become'
|
2
2
|
require 'bwapi/client/brandwatch/clients'
|
3
|
+
require 'bwapi/client/brandwatch/ditto_brands'
|
3
4
|
require 'bwapi/client/brandwatch/log_level'
|
4
5
|
require 'bwapi/client/brandwatch/price_structures'
|
5
6
|
require 'bwapi/client/brandwatch/usage_report'
|
@@ -29,6 +30,7 @@ module BWAPI
|
|
29
30
|
|
30
31
|
include BWAPI::Client::Brandwatch::Become
|
31
32
|
include BWAPI::Client::Brandwatch::Clients
|
33
|
+
include BWAPI::Client::Brandwatch::DittoBrands
|
32
34
|
include BWAPI::Client::Brandwatch::LogLevel
|
33
35
|
include BWAPI::Client::Brandwatch::PriceStructures
|
34
36
|
include BWAPI::Client::Brandwatch::UsageReport
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Brandwatch
|
4
|
+
# DittoBrands module for brandwatch/dittobrands endpoint
|
5
|
+
module DittoBrands
|
6
|
+
# Get all ditto brands
|
7
|
+
#
|
8
|
+
# @param opts [Hash] options hash of parameters
|
9
|
+
# @option opts [Integer] page Page of results to retrieve
|
10
|
+
# @option opts [Integer] pageSize Results per page of results
|
11
|
+
# @return [Hash] All ditto brands
|
12
|
+
def brandwatch_ditto_brands(opts = {})
|
13
|
+
get 'brandwatch/dittobrands', opts
|
14
|
+
end
|
15
|
+
|
16
|
+
# Create new ditto brand
|
17
|
+
#
|
18
|
+
# @param opts [Hash] options hash of parameters
|
19
|
+
# @option opts [Integer] id Id of the ditto brand
|
20
|
+
# @option opts [String] name Name of the ditto brand
|
21
|
+
# @return [Hash] New ditto brand
|
22
|
+
def create_brandwatch_ditto_brand(opts = {})
|
23
|
+
post 'brandwatch/dittobrands', opts
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -3,6 +3,7 @@ require 'bwapi/client/projects/categories'
|
|
3
3
|
require 'bwapi/client/projects/data'
|
4
4
|
require 'bwapi/client/projects/data_download'
|
5
5
|
require 'bwapi/client/projects/demographics'
|
6
|
+
require 'bwapi/client/projects/ditto_queries'
|
6
7
|
require 'bwapi/client/projects/facebook_queries'
|
7
8
|
require 'bwapi/client/projects/group'
|
8
9
|
require 'bwapi/client/projects/queries'
|
@@ -86,6 +87,7 @@ module BWAPI
|
|
86
87
|
include BWAPI::Client::Projects::Data
|
87
88
|
include BWAPI::Client::Projects::DataDownload
|
88
89
|
include BWAPI::Client::Projects::Demographics
|
90
|
+
include BWAPI::Client::Projects::DittoQueries
|
89
91
|
include BWAPI::Client::Projects::FacebookQueries
|
90
92
|
include BWAPI::Client::Projects::Group
|
91
93
|
include BWAPI::Client::Projects::Queries
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Projects
|
4
|
+
# DittoQueries module for projects/dittoqueries endpoints
|
5
|
+
module DittoQueries
|
6
|
+
# Create a ditto query in a project
|
7
|
+
#
|
8
|
+
# @param project_id [Integer] Id of project
|
9
|
+
# @param opts [Hash] options hash of parameters
|
10
|
+
# @option opts [Integer] id Id of the query
|
11
|
+
# @option opts [String] name Name of the query
|
12
|
+
# @options opts [Integer] dittoBrandId The ditto brand id
|
13
|
+
# @return [Hash] New ditto query
|
14
|
+
def create_ditto_query(project_id, opts = {})
|
15
|
+
post "projects/#{project_id}/dittoqueries", opts
|
16
|
+
end
|
17
|
+
|
18
|
+
# Update an existing ditto query in a project
|
19
|
+
#
|
20
|
+
# @param project_id [Integer] Id of project
|
21
|
+
# @param ditto_query_id [Integer] Id of query
|
22
|
+
# @param opts [Hash] options hash of parameters
|
23
|
+
# @option opts [Integer] id Id of the query
|
24
|
+
# @option opts [String] name Name of the query
|
25
|
+
# @options opts [Integer] dittoBrandId The ditto brand id
|
26
|
+
# @return [Hash] Updated ditto query
|
27
|
+
def update_ditto_query(project_id, ditto_query_id, opts = {})
|
28
|
+
put "projects/#{project_id}/dittoqueries/#{ditto_query_id}", opts
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
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: 11.0.1.pre.
|
4
|
+
version: 11.0.1.pre.559
|
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-02-
|
11
|
+
date: 2015-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -166,6 +166,7 @@ files:
|
|
166
166
|
- lib/bwapi/client/brandwatch/command_center.rb
|
167
167
|
- lib/bwapi/client/brandwatch/command_center/scene_types.rb
|
168
168
|
- lib/bwapi/client/brandwatch/command_center/themes.rb
|
169
|
+
- lib/bwapi/client/brandwatch/ditto_brands.rb
|
169
170
|
- lib/bwapi/client/brandwatch/log_level.rb
|
170
171
|
- lib/bwapi/client/brandwatch/price_structures.rb
|
171
172
|
- lib/bwapi/client/brandwatch/usage_report.rb
|
@@ -226,6 +227,7 @@ files:
|
|
226
227
|
- lib/bwapi/client/projects/data/volume.rb
|
227
228
|
- lib/bwapi/client/projects/data_download.rb
|
228
229
|
- lib/bwapi/client/projects/demographics.rb
|
230
|
+
- lib/bwapi/client/projects/ditto_queries.rb
|
229
231
|
- lib/bwapi/client/projects/facebook_queries.rb
|
230
232
|
- lib/bwapi/client/projects/group.rb
|
231
233
|
- lib/bwapi/client/projects/group/author_group.rb
|