src/API.php
public function initialize($email, $password, array $clientConfig = [])
    {
        $mergedConfig = array_merge(
            $this->clientConfig,
            $clientConfig,
            [
                'headers' => [
                    'User-Agent' => "RIPS-API-Connector/{$this->version}",
                ],
            ],
            [
                'headers' => $this->getAuthHeaders($email, $password, $clientConfig)
            ]
        );

        $client = new Client($mergedConfig);
        $this->callbacks = new CallbackRequests($client);
        $this->applications = new ApplicationRequests($client);
        $this->licenses = new LicenseRequests($client);
        $this->logs = new LogRequests($client);
        $this->orgs = new OrgRequests($client);
        $this->quotas = new QuotaRequests($client);
        $this->settings = new SettingRequests($client);
        $this->sources = new SourceRequests($client);
        $this->status = new StatusRequests($client);
        $this->teams = new TeamRequests($client);
        $this->users = new UserRequests($client);
        $this->oauth2 = new OAuth2Requests($client);
        $this->activities = new ActivityRequests($client);
        $this->maintenance = new MaintenanceRequests($client);
        $this->languages = new LanguageRequests($client);
        $this->systems = new SystemRequests($client);
    }
public function initialize($email, $password, array $clientConfig = [])
    {
        $mergedConfig = array_merge(
            $this->clientConfig,
            $clientConfig,
            [
                'headers' => [
                    'User-Agent' => "RIPS-API-Connector/{$this->version}",
                ],
            ],
            [
                'headers' => $this->getAuthHeaders($email, $password, $clientConfig)
            ]
        );

        $client = new Client($mergedConfig);
        $this->callbacks = new CallbackRequests($client);
        $this->applications = new ApplicationRequests($client);
        $this->licenses = new LicenseRequests($client);
        $this->logs = new LogRequests($client);
        $this->orgs = new OrgRequests($client);
        $this->quotas = new QuotaRequests($client);
        $this->settings = new SettingRequests($client);
        $this->sources = new SourceRequests($client);
        $this->status = new StatusRequests($client);
        $this->teams = new TeamRequests($client);
        $this->users = new UserRequests($client);
        $this->oauth2 = new OAuth2Requests($client);
        $this->activities = new ActivityRequests($client);
        $this->maintenance = new MaintenanceRequests($client);
        $this->languages = new LanguageRequests($client);
        $this->systems = new SystemRequests($client);
    }
public function initialize ( $ email , $ password , array $ clientConfig = [ ] ) { $ mergedConfig = array_merge ( $ this -> clientConfig , $ clientConfig , [ 'headers' => [ 'User-Agent' => "RIPS-API-Connector/{$this->version}" , ] , ] , [ 'headers' => $ this -> getAuthHeaders ( $ email , $ password , $ clientConfig ) ] ) ; $ client = new Client ( $ mergedConfig ) ; $ this -> callbacks = new CallbackRequests ( $ client ) ; $ this -> applications = new ApplicationRequests ( $ client ) ; $ this -> licenses = new LicenseRequests ( $ client ) ; $ this -> logs = new LogRequests ( $ client ) ; $ this -> orgs = new OrgRequests ( $ client ) ; $ this -> quotas = new QuotaRequests ( $ client ) ; $ this -> settings = new SettingRequests ( $ client ) ; $ this -> sources = new SourceRequests ( $ client ) ; $ this -> status = new StatusRequests ( $ client ) ; $ this -> teams = new TeamRequests ( $ client ) ; $ this -> users = new UserRequests ( $ client ) ; $ this -> oauth2 = new OAuth2Requests ( $ client ) ; $ this -> activities = new ActivityRequests ( $ client ) ; $ this -> maintenance = new MaintenanceRequests ( $ client ) ; $ this -> languages = new LanguageRequests ( $ client ) ; $ this -> systems = new SystemRequests ( $ client ) ; }
Initialize new API
Separation from the constructor is required because in some cases the information are not yet known when
the object is constructed.

@param string $email
@param string $password
@param array $clientConfig
@throws Exception
Initialize new API Separation from the constructor is required because in some cases the information are not yet known when the object is constructed .