mercadopago.resources.user API documentation
Description: Module: user

# Module `mercadopago.resources.user`

Module: user

Expand source code

    """
        Module: user
    """
    from mercadopago.core import MPBase

    class User(MPBase):
        """
        Access to Users
        """

        def get(self, request_options=None):
            """Args:
                request_options (mercadopago.config.request_options, optional): An instance of
                RequestOptions can be pass changing or adding custom options to ur REST call.
                Defaults to None.

            Returns:
                dict: User find response
            """
            return self._get(uri="/users/me", request_options=request_options)

        @property
        def request_options(self):
            """
            Returns the attribute value of the function
            """
            return self.__request_options

## Classes

`class User (request_options, http_client)`

  Access to Users

  Expand source code

      class User(MPBase):
          """
          Access to Users
          """

          def get(self, request_options=None):
              """Args:
                  request_options (mercadopago.config.request_options, optional): An instance of
                  RequestOptions can be pass changing or adding custom options to ur REST call.
                  Defaults to None.

              Returns:
                  dict: User find response
              """
              return self._get(uri="/users/me", request_options=request_options)

          @property
          def request_options(self):
              """
              Returns the attribute value of the function
              """
              return self.__request_options

  ### Ancestors

  - MPBase

  ### Methods

  `def get(self, request_options=None)`

    ## Args

    `request_options` :`mercadopago.config.request_options`, optional
      An instance of

    RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.

    ## Returns

    `dict`
      User find response
    Expand source code

        def get(self, request_options=None):
            """Args:
                request_options (mercadopago.config.request_options, optional): An instance of
                RequestOptions can be pass changing or adding custom options to ur REST call.
                Defaults to None.

            Returns:
                dict: User find response
            """
            return self._get(uri="/users/me", request_options=request_options)

  ### Inherited members

  - `MPBase`:
    - `config`
    - `request_options`