public function updatePassword($username, $password)
    {
        $parameters['username'] = $username;
        $parameters['password'] = $password;
        return $this->apiClient->callEndpoint(
            sprintf('%s/avatars', self::ENDPOINT),
            $parameters,
            null,
            HttpMethod::REQUEST_PUT
        );
    }
public function updatePassword($username, $password)
    {
        $parameters['username'] = $username;
        $parameters['password'] = $password;
        return $this->apiClient->callEndpoint(
            sprintf('%s/avatars', self::ENDPOINT),
            $parameters,
            null,
            HttpMethod::REQUEST_PUT
        );
    }
public function updatePassword ( $ username , $ password ) { $ parameters [ 'username' ] = $ username ; $ parameters [ 'password' ] = $ password ; return $ this -> apiClient -> callEndpoint ( sprintf ( '%s/avatars' , self :: ENDPOINT ) , $ parameters , null , HttpMethod :: REQUEST_PUT ) ; }
Modify user password.

@param $username
@param $password
@return mixed
Modify user password .