vendasta-ri 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vendasta/ri.rb +11 -1
- data/lib/vendasta/ri/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92f1195dacdd779f8cc8dfb8468c6b2e5ac5b553
|
4
|
+
data.tar.gz: f4c1d9db8ac097d9db3cce852b8ea103b910ce4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab9158c24954c7b7bf9ae61c506c634da56aa24efbb9285292a0c53eb5f340fb85282322a72a240b9851b551f160ff178fda8aa369ffd3800ba30661d5621ec
|
7
|
+
data.tar.gz: 6d558600b27fc3f43233aee9b90095659b244d128d5a1be24e5764a9e68c44522983fc3eb6506426004b5ad83d6728e4e6e2b8f9600f00f33fa656bb4d01680c
|
data/lib/vendasta/ri.rb
CHANGED
@@ -101,7 +101,17 @@ module Vendasta
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def self.searchReviews(customerIdentifier) # Search Reviews
|
104
|
-
response = HTTParty.get("#{OPTIONS[:endpoint]}/review/search/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier
|
104
|
+
response = HTTParty.get("#{OPTIONS[:endpoint]}/review/search/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier})
|
105
|
+
|
106
|
+
if response.success?
|
107
|
+
response = JSON.parse(response.body)
|
108
|
+
else
|
109
|
+
response = JSON.parse(response.body)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
def self.searchReviewsbyPagesize(customerIdentifier, pageSize) # Search Reviews
|
114
|
+
response = HTTParty.get("#{OPTIONS[:endpoint]}/review/search/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier, :pageSize => pageSize})
|
105
115
|
|
106
116
|
if response.success?
|
107
117
|
response = JSON.parse(response.body)
|
data/lib/vendasta/ri/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vendasta-ri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Vera
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|