cb-api 0.3.2 → 0.3.3
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/cb/clients/anon_saved_search_api.rb +1 -1
- data/lib/cb/models/cb_saved_search.rb +4 -9
- data/lib/cb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NWEzNDA1ZDlkYjI4ZmIzMzk1OGJlNDExZmU3NjZiNTlmZjBkOGQwMw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YmEwMjZjMzhhNDhmNmJiOTNkMzg3ZWYwM2QxYWNmNzQyYTFiNTAwYw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NDNiNzgxY2I5ZjgyMmJiY2FmZDRkMzBlOGM4NzFkNWUxOGVhZjU1ODExNTc1
|
|
10
|
+
M2MzYjY4NmI2OTdiMGZiM2FkYzU3ZmUzNWJjN2M4ZGY1NDQ5NmE5OTQ5NGY2
|
|
11
|
+
NzA3MThjYmRjODMxYzU4ZjE3Y2MwZmVkMjVhZDExNGUyNjQ1NTY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NDU0ZjA2ZjgyZjNkYjczOTAxNjQ5ZTRiYjA2YzBiNzg1YWZlY2VlMWQ5OTUw
|
|
14
|
+
ZjllZDY5MzdhNGVmZjNlZmZkZmI0ZDlhYWMzOTNiZjA5MjQzZjc0YWVjZDY4
|
|
15
|
+
ZGIzMDU2MjIzYzg5MmFjYTFkOThmMTVmNjU4ODQyMGQ2ZWY4MmE=
|
|
@@ -4,7 +4,7 @@ module Cb
|
|
|
4
4
|
args = args[0] if args.is_a?(Array) && args.count == 1
|
|
5
5
|
my_api = Cb::Utils::Api.new
|
|
6
6
|
|
|
7
|
-
json_hash = my_api.cb_post Cb.configuration.uri_anon_saved_search_create, :body => CbSavedSearch.new(args).
|
|
7
|
+
json_hash = my_api.cb_post Cb.configuration.uri_anon_saved_search_create, :body => CbSavedSearch.new(args).create_anon_to_xml
|
|
8
8
|
|
|
9
9
|
if json_hash.has_key? 'AnonymousSavedSearch'
|
|
10
10
|
json_hash['AnonymousSavedSearch']['ExternalID'] = json_hash['ExternalID']
|
|
@@ -124,12 +124,10 @@ module Cb
|
|
|
124
124
|
ret = "<Request>"
|
|
125
125
|
ret += "<HostSite>#{@hostsite}</HostSite>"
|
|
126
126
|
ret += "<Cobrand>#{@cobrand}</Cobrand>"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
ret += "<EmailAddress>#{@email_address}</EmailAddress>"
|
|
132
|
-
end
|
|
127
|
+
ret += "<BrowserID>#{@browser_id}</BrowserID>"
|
|
128
|
+
ret += "<SessionID>#{@session_id}</SessionID>"
|
|
129
|
+
ret += "<Test>#{@test}</Test>"
|
|
130
|
+
ret += "<EmailAddress>#{@email_address}</EmailAddress>"
|
|
133
131
|
ret += "<SearchName>#{@search_name}</SearchName>"
|
|
134
132
|
ret += "<SearchParameters>"
|
|
135
133
|
ret += "<BooleanOperator>#{@boolean_operator}</BooleanOperator>"
|
|
@@ -156,9 +154,6 @@ module Cb
|
|
|
156
154
|
ret += "<State>#{@state}</State>"
|
|
157
155
|
ret += "</SearchParameters>"
|
|
158
156
|
ret += "<IsDailyEmail>#{@is_daily_email.upcase}</IsDailyEmail>"
|
|
159
|
-
unless @email_address.nil?
|
|
160
|
-
ret += "<ExternalUserID>#{@external_user_id}</ExternalUserID>"
|
|
161
|
-
end
|
|
162
157
|
ret += "<DeveloperKey>#{@dev_key}</DeveloperKey>"
|
|
163
158
|
ret += "</Request>"
|
|
164
159
|
|
data/lib/cb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cb-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jesse Retchko
|
|
@@ -18,7 +18,7 @@ authors:
|
|
|
18
18
|
autorequire:
|
|
19
19
|
bindir: bin
|
|
20
20
|
cert_chain: []
|
|
21
|
-
date: 2013-09-
|
|
21
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
|
22
22
|
dependencies:
|
|
23
23
|
- !ruby/object:Gem::Dependency
|
|
24
24
|
name: httparty
|