vendasta-ri 0.0.4 → 0.0.5
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 +10 -0
- 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: b55d3f4d04fdbfab55bc4139ecebb8b250545fe2
|
4
|
+
data.tar.gz: 00c57de7ac5d147474e6587ef1ad6045d72d23c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9ff9e6ecc460aec276e18202036740698129fa081f4413e77648be1b4ddc0407a49a1f5b9cfb2b9f13a520338f9f413e75da310231a1880b97fda9d92105fc7
|
7
|
+
data.tar.gz: 080c19900bc037b0f1052528581046c992b479f0ce4b31233de7e846e5031977a895ca47e53b9cf12ff810fdbfabcc69a525928cb23e693d9858cd5a2e5a1355
|
data/lib/vendasta/ri.rb
CHANGED
@@ -55,6 +55,16 @@ module Vendasta
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
def self.lookupListingsBysource(customerIdentifier, sourceid) # Lookup Listings by source id
|
59
|
+
response = HTTParty.get("#{OPTIONS[:endpoint]}/visibility/lookupListings/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier, :sourceId => sourceid})
|
60
|
+
|
61
|
+
if response.success?
|
62
|
+
response = JSON.parse(response.body)
|
63
|
+
else
|
64
|
+
response = JSON.parse(response.body)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
58
68
|
def self.lookupPossibleListings(customerIdentifier) # Lookup Possible Listings
|
59
69
|
response = HTTParty.get("#{OPTIONS[:endpoint]}/visibility/lookupPossibleListings/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier})
|
60
70
|
|
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.0.
|
4
|
+
version: 0.0.5
|
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-
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|