Testo API ES

{{$apiUrl = ‘https://eventaservo.org/api/v1/events.json’; $result = array(); try { $result = \IPS\Http\Url::external($apiUrl)->setQueryString(array(‘user_email’ => ‘tim@meddysong.com’, ‘user_token’ => ‘ynxG7oP3oxo3LN-dbn-6’, ‘komenca_dato’ => \IPS\DateTime::ts(time())->format(‘Y-m-d’), ‘fina_dato’ => \IPS\DateTime::create()->add(new \DateInterval(‘P90D’))->format(‘Y-m-d’)))->request()->get()->decodeJson(); } catch (\Exception $e) {} }}