0, 'hour' => 5, 'day' => '*', 'month' => '*', 'weekday' => '*', ); public function run() { $this->cronMsg("hello from PoserDemo!", FannieLogger::INFO); $settings = $this->config->get('PLUGIN_SETTINGS'); $url = $settings['PoserDemoTailboneAPIURL']; if (!$url) { $this->cronMsg("must define the Tailbone API URL", FannieLogger::ERROR); return; } $token = $settings['PoserDemoTailboneAPIToken']; if (!$token) { $this->cronMsg("must define the Tailbone API token", FannieLogger::ERROR); return; } $verifySSL = $settings['PoserDemoTailboneAPIVerifySSL'] === 'false' ? false : true; $posterior = new \Rattail\Posterior\Client($url, $token, $verifySSL); try { $response = $posterior->get('/about'); } catch (Exception $e) { $this->cronMsg($e, FannieLogger::ERROR); return; } $body = $response->getBody(); $this->cronMsg("response body was: $body", FannieLogger::INFO); print("$body\n"); } }