Class: Mercadolibre::Api

Inherits:
Object
  • Object
show all
Includes:
Core::Auth, Core::CategoriesAndListings, Core::ItemsAndSearches, Core::LocationsAndCurrencies, Core::OrderManagement, Core::Questions, Core::Shippings, Core::Users
Defined in:
lib/mercadolibre/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Users

#get_my_user, #get_seller, #get_user, #get_user_accepted_payment_methods, #get_users

Methods included from Core::Shippings

#get_shipment, #update_shipment

Methods included from Core::Questions

#add_user_to_questions_blacklist, #answer_question, #ask_question, #delete_question, #get_my_questions, #get_my_questions_count, #get_question, #get_questions, #get_questions_blacklist, #get_questions_count, #remove_user_from_questions_blacklist

Methods included from Core::OrderManagement

#add_user_to_orders_blacklist, #change_order_buyer_feedback, #change_order_feedback, #change_order_seller_feedback, #create_order_feedback, #create_order_note, #delete_order_note, #get_order, #get_order_buyer_feedback, #get_order_feedbacks, #get_order_notes, #get_order_seller_feedback, #get_orders, #get_orders_blacklist, #get_site_payment_method_info, #get_site_payment_methods, #remove_user_from_orders_blacklist, #reply_order_feedback, #update_order_note

Methods included from Core::LocationsAndCurrencies

#currency_convertion_rate, #get_city, #get_countries, #get_country, #get_currencies, #get_currency, #get_state, #get_zip_code_info

Methods included from Core::ItemsAndSearches

#add_item_description, #create_item, #delete_item_attributes, #get_featured_items, #get_hot_items, #get_item, #get_item_available_upgrades, #get_item_description, #get_item_descriptions, #get_item_identifiers, #get_item_ids, #get_item_visits, #get_my_item_ids, #get_search_url, #get_site_trends, #item_valid?, #relist_item, #search_items, #update_item_attributes, #update_item_fields, #update_item_identifiers, #update_item_listing_type

Methods included from Core::CategoriesAndListings

#get_category, #get_listing_exposures, #get_listing_prices, #get_listing_types, #get_site, #get_site_categories, #get_site_domain_info, #get_sites

Methods included from Core::Auth

#authenticate, #authenticate_url, #update_token

Constructor Details

#initialize(args = {}) ⇒ Api

Returns a new instance of Api.


5
6
7
8
9
10
11
12
13
14
# File 'lib/mercadolibre/api.rb', line 5

def initialize(args={})
  @app_key = args[:app_key]
  @app_secret = args[:app_secret]
  @callback_url = args[:callback_url]
  @site = args[:site]
  @access_token = args[:access_token]
  @endpoint_url = 'https://api.mercadolibre.com'
  @auth_url = 'https://auth.mercadolibre.com.ar'
  @debug = args[:debug]
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token


3
4
5
# File 'lib/mercadolibre/api.rb', line 3

def access_token
  @access_token
end