<?php

namespace Slakbal\Gotowebinar;

use Slakbal\Gotowebinar\Traits\GotoClient;

class DirectLogin
{

    use GotoClient;

    protected $path = 'oauth/access_token';


    public function authenticate()
    {
        return $this->getAuthObject($this->path, $this->getParameters());
    }


    private function getParameters()
    {
        return [
            'grant_type' => "password",
            'user_id'    => config('goto.direct.username'),
            'password'   => config('goto.direct.password'),
            'client_id'  => config('goto.direct.client_id'),
        ];
    }

}
<?php

namespace Slakbal\Gotowebinar;

use Slakbal\Gotowebinar\Traits\GotoClient;

class DirectLogin
{

    use GotoClient;

    protected $path = 'oauth/v2/token';


    public function authenticate()
    {
        return $this->getAuthObject($this->path, $this->getParameters());
    }


    private function getParameters()
    {
        return [
            'grant_type' => "password",
            'username'    => config('goto.direct.username'),
            'password'   => config('goto.direct.password')
        ];
    }
}

Remove client_id as it is not required in the body of the request
Remove client_id as it is not required in the body of the request
