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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec3416e89343f3cb2619863c09c91ae3b387bf4d
4
- data.tar.gz: 9ca5621b21aaf59153016c1474102806dd0ceaa0
3
+ metadata.gz: 92f1195dacdd779f8cc8dfb8468c6b2e5ac5b553
4
+ data.tar.gz: f4c1d9db8ac097d9db3cce852b8ea103b910ce4e
5
5
  SHA512:
6
- metadata.gz: 48264b444817d50ccf690e0609a83114f257a3fcb2b82f91c3871c2067c07a30b3c2c689a38fce0e93ce796071da0c39ce533454bed90e01b64a476dadd93087
7
- data.tar.gz: 13f4eb48c0cdce71e70f2c7956047affa6f68d004ae4e314898c13cb4018f9528ee5f6f66a6c6f4fb0839706f4b8a1be6668ce9ac2838eb739c780ab81b4ea21
6
+ metadata.gz: 1ab9158c24954c7b7bf9ae61c506c634da56aa24efbb9285292a0c53eb5f340fb85282322a72a240b9851b551f160ff178fda8aa369ffd3800ba30661d5621ec
7
+ data.tar.gz: 6d558600b27fc3f43233aee9b90095659b244d128d5a1be24e5764a9e68c44522983fc3eb6506426004b5ad83d6728e4e6e2b8f9600f00f33fa656bb4d01680c
@@ -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, :pageSize => '500'})
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)
@@ -1,5 +1,5 @@
1
1
  module Vendasta
2
2
  module Ri
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2014-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler