Module: Mercadolibre::Core::Apps

Included in:
Api
Defined in:
lib/mercadolibre/core/apps.rb

Instance Method Summary collapse

Instance Method Details

#get_application_feedsObject



12
13
14
# File 'lib/mercadolibre/core/apps.rb', line 12

def get_application_feeds
  get_request("/users/#{user_id}/applications/#{@app_key}", { access_token: @access_token }).body
end

#get_application_infoObject



4
5
6
# File 'lib/mercadolibre/core/apps.rb', line 4

def get_application_info
  get_request("/applications/#{@app_key}", { access_token: @access_token }).body
end

#revoke_application_permissions(user_id, application_id) ⇒ Object



8
9
10
# File 'lib/mercadolibre/core/apps.rb', line 8

def revoke_application_permissions(user_id, application_id)
  delete_request("/users/#{user_id}/applications/#{app_id}?access_token=#{@access_token}").body
end