protected function getApiBody(): array
    {
        $clientId = $this->client->getClientId();
        $clientSecret = $this->client->getClientSecret();

        if (empty($clientId) || empty($clientSecret)) {
            throw new InvalidArgumentException('Missing client_id and client_secret information!');
        }

        return [
            'scope' => '*',
            'grant_type' => 'password',
            'client_id' => $clientId,
            'client_secret' => $clientSecret,
        ];
    }
protected function getApiBody(): array
    {
        $clientId = $this->client->getClientId();
        $clientSecret = $this->client->getClientSecret();

        if (empty($clientId) || empty($clientSecret)) {
            throw new InvalidArgumentException('Missing client_id and client_secret information!');
        }

        return [
            'scope' => '*',
            'grant_type' => 'password',
            'client_id' => $clientId,
            'client_secret' => $clientSecret,
        ];
    }
protected function getApiBody ( ) : array { $ clientId = $ this -> client -> getClientId ( ) ; $ clientSecret = $ this -> client -> getClientSecret ( ) ; if ( empty ( $ clientId ) || empty ( $ clientSecret ) ) { throw new InvalidArgumentException ( 'Missing client_id and client_secret information!' ) ; } return [ 'scope' => '*' , 'grant_type' => 'password' , 'client_id' => $ clientId , 'client_secret' => $ clientSecret , ] ; }
Get API Body.

@return array
Get API Body .