vendasta-ri 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78e8d0a44c2c55e9c1961ba1debd25df0eb060ff
4
- data.tar.gz: 12697bc48963db1d5ff858021c0043296ca96207
3
+ metadata.gz: b55d3f4d04fdbfab55bc4139ecebb8b250545fe2
4
+ data.tar.gz: 00c57de7ac5d147474e6587ef1ad6045d72d23c1
5
5
  SHA512:
6
- metadata.gz: a4a58e919db7af815bc23cda89f3c96a8ee54a9a9012f82edbbd36191401e79a98d0cc26e593ed420a5d918959edf5d122e762544d5675128d4f31417a4c2c59
7
- data.tar.gz: 831d4bc362e7b591efedeb92da001ae773b0e401eb4a22ab1ae7159fe52fb97e349864ffaa9921089363179567820b41899144363535830c65d269ef5be1491f
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
 
@@ -1,5 +1,5 @@
1
1
  module Vendasta
2
2
  module Ri
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
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.0.4
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-04-29 00:00:00.000000000 Z
11
+ date: 2014-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler