vendasta-ri 0.0.5 → 0.0.6
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/version.rb +1 -1
- data/lib/vendasta/ri.rb +0 -10
- 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: a18fe670aec22a451e74f584c249cc174fff1f36
|
4
|
+
data.tar.gz: 596225583864ff7a1a466a84c7109ea783feb70e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3008c3fd56defea3611bbb3680dfc7c0664e160ec960a841dab7a300d1a409b8f6387f6eb7f30ba37a8d464df7dbb6894f69404aef1dce27284dab53b55dab5
|
7
|
+
data.tar.gz: cb76fdeacaa50914be32b67e8c10cc3b1f1029114ac3cde00bad94a85144e71367ca9cb77f424ae6c6fcfd39908f6f8cc8498c5d007d9663463f01b3167917e4
|
data/lib/vendasta/ri/version.rb
CHANGED
data/lib/vendasta/ri.rb
CHANGED
@@ -110,16 +110,6 @@ module Vendasta
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
def self.searchReviews(customerIdentifier) # Search Reviews
|
114
|
-
response = HTTParty.get("#{OPTIONS[:endpoint]}/review/search/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier})
|
115
|
-
|
116
|
-
if response.success?
|
117
|
-
response = JSON.parse(response.body)
|
118
|
-
else
|
119
|
-
response = JSON.parse(response.body)
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
113
|
def self.getReviewStatistics(customerIdentifier) # Get Review Statistics
|
124
114
|
response = HTTParty.get("#{OPTIONS[:endpoint]}/review/getStats/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier})
|
125
115
|
|
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.0.
|
4
|
+
version: 0.0.6
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|