MC4WP_API_v3::is_connected PHP Method

is_connected() public method

The result is cached to ensure a maximum of 1 API call per page load
public is_connected ( ) : boolean
return boolean
    public function is_connected()
    {
        if (is_null($this->connected)) {
            $data = $this->client->get('/');
            $this->connected = is_object($data) && isset($data->account_id);
        }
        return $this->connected;
    }