bwapi 9.0.1 → 9.1.0.pre.432

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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0e283af38aa6eae304650595422f89e61580aafb
4
- data.tar.gz: 84bc8227d7805acffb22c86a5c7273e4f775c890
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTk3ZmMwMGU3YTJhZjJhZTZiMTEzNjE0OTNhOWNhZmZhNTdlMGU2Ng==
5
+ data.tar.gz: !binary |-
6
+ MDI2MzVmOWE1ZGJiMDQ1NjEzYzc3ZjhhZTdhMGM0Zjg1NTc3OThkOA==
5
7
  SHA512:
6
- metadata.gz: eb631c42caec373aaa1476ff02f0eb4c81ef75ab9fe686c46b3dd937b1802d0ed41252fc81bd7b78948729fe68ef95b78901f1e85d686d03469dc5017c2f7b46
7
- data.tar.gz: d8e308829cdba0592d2ef619d93039fa8eb577442a74cc0b01b8df291a0e16738f2671019dd12df21440da93df3adb76ecfd982379849de17a994c3f7b1c6004
8
+ metadata.gz: !binary |-
9
+ ZDg1MmY0MjVkNmQwOGFiYTdiNDllODAwMmI5MTBkNjc2Yzk2ODdiYjI1YWZi
10
+ ZjM1ZTgyYzBkMWQyNzBhODMxZmM3ZTI4YWFiNjAzNGQ4OWIyMjJjNjE3ODRm
11
+ NjJkYjYyODc4MDI0YjYxODM1ZDVmMzhjMjFkMzNkZDBlOGFjMDY=
12
+ data.tar.gz: !binary |-
13
+ YWE1MDkyYTI2NDgyODNiZWM5ZDExOWMwMTc4OTQyMWFmNDc3OTRjNjgyYTgx
14
+ YzU1NTNjODY3ZWUwMjAwN2Q3MDZjMmQ4YjM0ZWUyZjMzZTQxNjkyMWZlOWUw
15
+ YmJlYWQ2MzM1Y2EzOGYwZjA5YzY2MDkwYmFlYjk2YjI1ODQxMzc=
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 9.1.0
5
+ ### Added
6
+ * NoTask - added parent client endpoints
7
+
8
+ ## 9.0.1
9
+ ### Fixed
10
+ * NoTask - fixed middleware conflict with the bw_status_board_api gem
11
+
4
12
  ## 9.0.0
5
13
  ### Added
6
14
  * NoTask - updated notifications endpoints to match new structure
data/README.md CHANGED
@@ -64,7 +64,7 @@ bw = BWAPI::Client.new(username: 'username@example.com', password: 'pa$$w0rd', d
64
64
  ```
65
65
 
66
66
  ### Performance
67
- When debug mode is running the response performance is stored on each require, to view the stats call the performance method on the client instance:
67
+ When debug mode is running the response performance is stored on each request, to view the stats call the performance method on the client instance:
68
68
 
69
69
  ```ruby
70
70
  bw.performance
data/bwapi.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.name = 'bwapi'
5
5
  s.version = BWAPI::VERSION
6
6
  s.version = BWAPI::VERSION + ".pre.#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
7
- s.date = '2014-09-05'
7
+ s.date = '2014-10-01'
8
8
  s.summary = 'Brandwatch API Wrapper'
9
9
  s.description = 'A Ruby wrapper for the Brandwatch API'
10
10
  s.author = 'Jonathan Chrisp'
@@ -1,5 +1,6 @@
1
1
  require 'bwapi/client/brandwatch/become'
2
2
  require 'bwapi/client/brandwatch/client_modules'
3
+ require 'bwapi/client/brandwatch/clients'
3
4
 
4
5
  module BWAPI
5
6
  class Client
@@ -26,6 +27,7 @@ module BWAPI
26
27
 
27
28
  include BWAPI::Client::Brandwatch::Become
28
29
  include BWAPI::Client::Brandwatch::ClientModules
30
+ include BWAPI::Client::Brandwatch::Clients
29
31
  end
30
32
  end
31
33
  end
@@ -0,0 +1,96 @@
1
+ module BWAPI
2
+ class Client
3
+ module Brandwatch
4
+ # Clients module for brandwatch/clients endpoints
5
+ module Clients
6
+ # Get specific clients
7
+ #
8
+ # @param opts [Hash] options Hash of parameters
9
+ # @options opts [String] nameContains Client name search (case insensitive)
10
+ # @return [Hash] List of filtered clients
11
+ def clients(opts = {})
12
+ get 'brandwatch/clients', opts
13
+ end
14
+
15
+ # Create a new parent client
16
+ #
17
+ # @param opts [Hash] options Hash of parameters
18
+ # @option opts [String] address1 Address line one of the client
19
+ # @option opts [String] address2 Address line two of the client
20
+ # @option opts [String] address3 Address line three of the client
21
+ # @option opts [String] contactEmail The contact email for the client
22
+ # @option opts [String] contactMobile The mobile number for the client
23
+ # @option opts [String] contactName The contact name of the client
24
+ # @option opts [String] contactTelephone Telephone number of the client
25
+ # @option opts [String] contactTitle Contact title of the client
26
+ # @option opts [String] country The country of the client
27
+ # @option opts [Date] expiryDate The expiry date for the client
28
+ # @option opts [Integer] id Id of the client
29
+ # @option opts [Boolean] isLegacy Legacy status of the client
30
+ # @option opts [Integer] maxUsers Maxiumum number of users for the client
31
+ # @option opts [Integer] maximumSubscribedBrands The maximum subscribed brands for the client
32
+ # @option opts [Integer] mentionArchiveSize Mention archive size for the client
33
+ # @option opts [Integer] mentionBasedPricingMatrixLevel The amount of mentions allowed
34
+ # @option opts [String] name Name of the client
35
+ # @option opts [String] owner Owner of client
36
+ # @option opts [Integer] parentId clients parent Client (subclients only)
37
+ # @option opts [String] postcode The postcode of the client
38
+ # @option opts [Integer] priceStructureId Id of the price structure for client
39
+ # @option opts [Integer] priceStructureLineId The level of the price structure for the client
40
+ # @option opts [String] pricingModel Pricing model of the client
41
+ # @option opts [Date] startDate Start date of the client
42
+ # @option opts [Hash] tags Tags for the client
43
+ # @option opts [String] theme The theme of the client
44
+ # @option opts [String] website The website for the client
45
+ # @return [Hash] Newly created parent client
46
+ def create_client(opts = {})
47
+ post 'brandwatch/clients', opts
48
+ end
49
+
50
+ # Get specific client
51
+ #
52
+ # @param client_id [Integer] Id of the client
53
+ # @return [Hash] Specific client
54
+ def get_client(client_id)
55
+ get "brandwatch/clients/#{client_id}"
56
+ end
57
+
58
+ # Update an existing parent client
59
+ #
60
+ # @param client_id [Integer] Id of the client
61
+ # @param opts [Hash] options Hash of parameters
62
+ # @option opts [String] address1 Address line one of the client
63
+ # @option opts [String] address2 Address line two of the client
64
+ # @option opts [String] address3 Address line three of the client
65
+ # @option opts [String] contactEmail The contact email for the client
66
+ # @option opts [String] contactMobile The mobile number for the client
67
+ # @option opts [String] contactName The contact name of the client
68
+ # @option opts [String] contactTelephone Telephone number of the client
69
+ # @option opts [String] contactTitle Contact title of the client
70
+ # @option opts [String] country The country of the client
71
+ # @option opts [Date] expiryDate The expiry date for the client
72
+ # @option opts [Integer] id Id of the client
73
+ # @option opts [Boolean] isLegacy Legacy status of the client
74
+ # @option opts [Integer] maxUsers Maxiumum number of users for the client
75
+ # @option opts [Integer] maximumSubscribedBrands The maximum subscribed brands for the client
76
+ # @option opts [Integer] mentionArchiveSize Mention archive size for the client
77
+ # @option opts [Integer] mentionBasedPricingMatrixLevel The amount of mentions allowed
78
+ # @option opts [String] name Name of the client
79
+ # @option opts [String] owner Owner of client
80
+ # @option opts [Integer] parentId clients parent Client (subclients only)
81
+ # @option opts [String] postcode The postcode of the client
82
+ # @option opts [Integer] priceStructureId Id of the price structure for client
83
+ # @option opts [Integer] priceStructureLineId The level of the price structure for the client
84
+ # @option opts [String] pricingModel Pricing model of the client
85
+ # @option opts [Date] startDate Start date of the client
86
+ # @option opts [Hash] tags Tags for the client
87
+ # @option opts [String] theme The theme of the client
88
+ # @option opts [String] website The website for the client
89
+ # @return [Hash] Updated parent client
90
+ def update_client(client_id, opts = {})
91
+ post "brandwatch/clients/#{client_id}", opts
92
+ end
93
+ end
94
+ end
95
+ end
96
+ end
data/lib/bwapi/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # BWAPI Version
2
2
  module BWAPI
3
- VERSION = '9.0.1'
3
+ VERSION = '9.1.0'
4
4
  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: 9.0.1
4
+ version: 9.1.0.pre.432
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-05 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -137,6 +137,7 @@ files:
137
137
  - lib/bwapi/client/brandwatch.rb
138
138
  - lib/bwapi/client/brandwatch/become.rb
139
139
  - lib/bwapi/client/brandwatch/client_modules.rb
140
+ - lib/bwapi/client/brandwatch/clients.rb
140
141
  - lib/bwapi/client/client.rb
141
142
  - lib/bwapi/client/command_center.rb
142
143
  - lib/bwapi/client/command_center/client.rb
@@ -223,14 +224,14 @@ require_paths:
223
224
  - lib
224
225
  required_ruby_version: !ruby/object:Gem::Requirement
225
226
  requirements:
226
- - - '>='
227
+ - - ! '>='
227
228
  - !ruby/object:Gem::Version
228
229
  version: 1.9.2
229
230
  required_rubygems_version: !ruby/object:Gem::Requirement
230
231
  requirements:
231
- - - '>='
232
+ - - ! '>'
232
233
  - !ruby/object:Gem::Version
233
- version: '0'
234
+ version: 1.3.1
234
235
  requirements: []
235
236
  rubyforge_project:
236
237
  rubygems_version: 2.4.1
@@ -241,4 +242,3 @@ test_files:
241
242
  - spec/bwapi/client_spec.rb
242
243
  - spec/bwapi_spec.rb
243
244
  - spec/helper.rb
244
- has_rdoc: