Class UserIdentityApi
java.lang.Object
com.amilesend.discogs.api.ApiBase
com.amilesend.discogs.api.UserIdentityApi
-
Constructor Summary
ConstructorsConstructorDescriptionUserIdentityApi
(DiscogsConnection connection) Creates a newIdentityApi
object. -
Method Summary
Modifier and TypeMethodDescriptioneditUserProfile
(@NonNull EditUserProfileRequest request) Edits a user profile.Gets the basic information about the authenticated user.getUserContributions
(@NonNull GetUserContributionsRequest request) Gets the contributions made by the give user, sort, and sort order.getUserProfile
(@NonNull GetUserProfileRequest request) Gets a user profile.getUserSubmissions
(@NonNull GetUserSubmissionsRequest request) Gets the submissions made by the given user.Methods inherited from class ApiBase
getConnection
-
Constructor Details
-
UserIdentityApi
Creates a newIdentityApi
object.- Parameters:
connection
- the underlying client connection
-
-
Method Details
-
getAuthenticatedUser
Gets the basic information about the authenticated user.- Returns:
- the authenticated user information
- See Also:
-
getUserProfile
Gets a user profile.- Parameters:
request
- the request- Returns:
- the user profile
- See Also:
-
editUserProfile
Edits a user profile.- Parameters:
request
- the request with the attributes to edit- Returns:
- the updated user profile
- See Also:
-
getUserSubmissions
Gets the submissions made by the given user.- Parameters:
request
- the request- Returns:
- the submissions
- See Also:
-
getUserContributions
public GetUserContributionsResponse getUserContributions(@NonNull GetUserContributionsRequest request) Gets the contributions made by the give user, sort, and sort order.- Parameters:
request
- the request specifying user, sort, and sort order- Returns:
- the contributions
- See Also:
-