Class: Mercadopago::User
- Defined in:
- lib/mercadopago/resources/user.rb
Overview
Retrieves the profile of the currently authenticated MercadoPago user.
Useful for validating the access token and obtaining the seller’s account details (ID, email, site, country, etc.).
Instance Method Summary collapse
-
#get(request_options: nil) ⇒ Hash{Symbol => Object}
Returns the authenticated user’s profile.
Methods inherited from MPBase
#_check_headers, #_check_request_options, #_delete, #_get, #_post, #_put, #initialize
Constructor Details
This class inherits a constructor from Mercadopago::MPBase
Instance Method Details
#get(request_options: nil) ⇒ Hash{Symbol => Object}
Returns the authenticated user’s profile.
16 17 18 |
# File 'lib/mercadopago/resources/user.rb', line 16 def get(request_options: nil) _get(uri: '/users/me', request_options: ) end |