Class GetCurrentUsersProfileRequest
- java.lang.Object
-
- de.sonallux.spotify.api.apis.usersprofile.GetCurrentUsersProfileRequest
-
public class GetCurrentUsersProfileRequest extends Object
Get Current User's Profile requestRequired OAuth scopes
user-read-email, user-read-privateResponse
On success, the HTTP status code in the response header is
200OK and the response body contains a user object in JSON format. On error, the header status code is an error code and the response body contains an error object. When requesting fields that you don't have the user's authorization to access, it will return error403Forbidden.Important! If the
user-read-emailscope is authorized, the returned JSON will include the email address that was entered when the user created their Spotify account. This email address is unverified; do not assume that the email address belongs to the user.
-
-
Constructor Summary
Constructors Constructor Description GetCurrentUsersProfileRequest(ApiClient apiClient)Get Current User's Profile request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCall<PrivateUser>build()Build the request into an executable call
-
-
-
Constructor Detail
-
GetCurrentUsersProfileRequest
public GetCurrentUsersProfileRequest(ApiClient apiClient)
Get Current User's Profile request
- Parameters:
apiClient-The API client
-
-
Method Detail
-
build
public ApiCall<PrivateUser> build()
Build the request into an executable call
-
-