Oara\Network\Publisher\DirectTrack::checkConnection PHP 메소드

checkConnection() 공개 메소드

public checkConnection ( ) : boolean
리턴 boolean
    public function checkConnection()
    {
        $connection = false;
        $apiURL = "https://{$this->_domain}/apifleet/rest/{$this->_clientId}/{$this->_accessId}/campaign/active/";
        $response = self::call($apiURL);
        if (isset($response["@attributes"])) {
            $connection = true;
        }
        return $connection;
    }