Class GetCurrentUsersProfileRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<User,GetCurrentUsersProfileRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<User,GetCurrentUsersProfileRequest.Builder>
se.michaelthelin.spotify.requests.data.users_profile.GetCurrentUsersProfileRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<User,
GetCurrentUsersProfileRequest.Builder>
- Enclosing class:
GetCurrentUsersProfileRequest
public static final class GetCurrentUsersProfileRequest.Builder
extends AbstractDataRequest.Builder<User,GetCurrentUsersProfileRequest.Builder>
Builder class for building a
GetCurrentUsersProfileRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.protected GetCurrentUsersProfileRequest.Builder
self()
Return this instance to simulate a self-type.Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
Create a newGetCurrentUsersProfileRequest.Builder
.Reading the user's email address requires the
user-read-email
scope; reading country and product subscription level requires theuser-read-private
scope. Reading the user's birthdate requires theuser-read-birthdate
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.- See Also:
-
-
Method Details
-
build
The request build method.- Returns:
- A custom
GetCurrentUsersProfileRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<User,
GetCurrentUsersProfileRequest.Builder> - Returns:
- This instance.
-