Class GetCurrentUsersProfileRequest


  • public class GetCurrentUsersProfileRequest
    extends Object
    Get Current User's Profile request

    Required OAuth scopes

    user-read-email, user-read-private

    Response

    On success, the HTTP status code in the response header is 200 OK 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 error 403 Forbidden.

    Important! If the user-read-email scope 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 Detail

      • GetCurrentUsersProfileRequest

        public GetCurrentUsersProfileRequest​(ApiClient apiClient)

        Get Current User's Profile request

        Parameters:
        apiClient -

        The API client

    • Method Detail