Class AuthAPI

    • Constructor Detail

      • AuthAPI

        protected AuthAPI​(AuthAPI.Conf<?> builder)
        Protected constructor. Create this AuthAPI by using its AuthAPI.Builder.
        Parameters:
        builder - The builder to use.
    • Method Detail

      • getMeAccountCommand

        public AuthAPI.GetMeAccountCommand getMeAccountCommand()
        get account information about current token

        API GET /api/auth/[version]/me/account

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • getMeAvatarCommand

        public AuthAPI.GetMeAvatarCommand getMeAvatarCommand()
        get avatar of current token's account

        API GET /api/auth/[version]/me/avatar

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • putMeAvatarCommand

        public AuthAPI.PutMeAvatarCommand putMeAvatarCommand​(StreamContainer streamContainer)
        set avatar of current token's account

        API PUT /api/auth/[version]/me/avatar

        Parameters:
        streamContainer - The existing StreamContainer. Must not be null.
        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • putMeAvatarCommand

        public AuthAPI.PutMeAvatarCommand putMeAvatarCommand​(java.io.InputStream inputStream)
        set avatar of current token's account

        API PUT /api/auth/[version]/me/avatar

        Parameters:
        inputStream - The inputStream for the request body. Must not be null.
        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • putMePasswordCommand

        public AuthAPI.PutMePasswordCommand putMePasswordCommand()
        change password of current token's account

        API PUT /api/auth/[version]/me/password

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • getMeProfileCommand

        public AuthAPI.GetMeProfileCommand getMeProfileCommand()
        get profile of current token's account

        API GET /api/auth/[version]/me/profile

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • postMeProfileCommand

        public AuthAPI.PostMeProfileCommand postMeProfileCommand()
        change profile of current token's account

        API POST /api/auth/[version]/me/profile

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • getMeRolesCommand

        public AuthAPI.GetMeRolesCommand getMeRolesCommand()
        get roles connected to of current token teams

        API GET /api/auth/[version]/me/roles

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation
      • getMeTeamsCommand

        public AuthAPI.GetMeTeamsCommand getMeTeamsCommand()
        gets the teams connected to current token

        API GET /api/auth/[version]/me/teams

        Returns:
        New instance of the command. Use method "execute()" after all parameters have been set to run the command.
        See Also:
        API Documentation