Package com.mercadopago.client.user
Class UserClient
- java.lang.Object
-
- com.mercadopago.client.MercadoPagoClient
-
- com.mercadopago.client.user.UserClient
-
public class UserClient extends MercadoPagoClient
Client to get user information.
-
-
Field Summary
-
Fields inherited from class com.mercadopago.client.MercadoPagoClient
defaultHeaders, httpClient
-
-
Constructor Summary
Constructors Constructor Description UserClient()
Default constructor.UserClient(MPHttpClient httpClient)
Constructor used for providing a custom http client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
get()
Get user information.User
get(MPRequestOptions requestOptions)
Get user information with custom attributes on request.
-
-
-
Constructor Detail
-
UserClient
public UserClient()
Default constructor. Uses the default http client used by the SDK
-
UserClient
public UserClient(MPHttpClient httpClient)
Constructor used for providing a custom http client.- Parameters:
httpClient
- Http Client
-
-
Method Detail
-
get
public User get() throws MPException, MPApiException
Get user information.- Returns:
- user information
- Throws:
MPException
- an error if the request failsMPApiException
-
get
public User get(MPRequestOptions requestOptions) throws MPException, MPApiException
Get user information with custom attributes on request.- Parameters:
requestOptions
- metadata to customize the request- Returns:
- user information
- Throws:
MPException
- an error if the request failsMPApiException
-
-