Class: Mercadopago::User

Inherits:
MPBase
  • Object
show all
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

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.

Parameters:

  • request_options (RequestOptions, nil) (defaults to: nil)

    per-call configuration override

Returns:

  • (Hash{Symbol => Object})

    :status and :response with user profile data



16
17
18
# File 'lib/mercadopago/resources/user.rb', line 16

def get(request_options: nil)
  _get(uri: '/users/me', request_options: request_options)
end