Module: Mercadolibre::Core::Listings
- Included in:
- Api
- Defined in:
- lib/mercadolibre/core/listings.rb
Instance Method Summary collapse
- #get_listing_exposures(site_id) ⇒ Object
- #get_listing_prices(site_id, args) ⇒ Object
- #get_listing_type(site_id, listing_type_id) ⇒ Object
- #get_listing_types(site_id) ⇒ Object
- #get_site(site_id) ⇒ Object
- #get_site_domain(domain) ⇒ Object
- #get_site_payment_method_info(site_id, payment_method_id) ⇒ Object
- #get_site_payment_methods(site_id) ⇒ Object
- #get_sites ⇒ Object
Instance Method Details
#get_listing_exposures(site_id) ⇒ Object
30 31 32 |
# File 'lib/mercadolibre/core/listings.rb', line 30 def get_listing_exposures(site_id) get_request("/sites/#{site_id}/listing_exposures").body end |
#get_listing_prices(site_id, args) ⇒ Object
34 35 36 |
# File 'lib/mercadolibre/core/listings.rb', line 34 def get_listing_prices(site_id, args) get_request("/sites/#{site_id}/listing_prices", args).body end |
#get_listing_type(site_id, listing_type_id) ⇒ Object
38 39 40 |
# File 'lib/mercadolibre/core/listings.rb', line 38 def get_listing_type(site_id, listing_type_id) get_request("/sites/#{site_id}/listing_types/#{listing_type_id}").body end |
#get_listing_types(site_id) ⇒ Object
26 27 28 |
# File 'lib/mercadolibre/core/listings.rb', line 26 def get_listing_types(site_id) get_request("/sites/#{site_id}/listing_types").body end |
#get_site(site_id) ⇒ Object
8 9 10 |
# File 'lib/mercadolibre/core/listings.rb', line 8 def get_site(site_id) get_request("/sites/#{site_id}").body end |
#get_site_domain(domain) ⇒ Object
12 13 14 |
# File 'lib/mercadolibre/core/listings.rb', line 12 def get_site_domain(domain) get_request("/site_domains/#{domain}").body end |
#get_site_payment_method_info(site_id, payment_method_id) ⇒ Object
21 22 23 24 |
# File 'lib/mercadolibre/core/listings.rb', line 21 def get_site_payment_method_info(site_id, payment_method_id) results = get_request("/sites/#{site_id}/payment_methods/#{payment_method_id}") results.body end |
#get_site_payment_methods(site_id) ⇒ Object
16 17 18 19 |
# File 'lib/mercadolibre/core/listings.rb', line 16 def get_site_payment_methods(site_id) results = get_request("/sites/#{site_id}/payment_methods") results.body end |
#get_sites ⇒ Object
4 5 6 |
# File 'lib/mercadolibre/core/listings.rb', line 4 def get_sites get_request('/sites').body end |