In my laravel-application I want to include my google-calendar by using the Cronofy API and the package from cronofy-php.
When I try to create an event, I get the error 422 Unprocessable Entity but I don't really know why.
Here is my create/post request
$cronofy = new Cronofy\Cronofy([
    "client_id" => config('cronofy.client_id'),
    "client_secret" => config('cronofy.client_secret'),
    "access_token" => $access_token->value,
    "refresh_token" => $refresh_token->value
]);
$params = [
    'calendar_id' => (string)request()->calendar_id,
    'event_id' => (string)request()->event_id,
    'summary' => request()->summary,
    'description' => request()->description,
    'start' => request()->start,
    'end' => request()->end
  ];
$new_event = $cronofy->upsertEvent($params);
return response('event added!', $new_event);
I both tried without and with (string) on the "calendar_id" and "event_id" but with no luck.
So, what am I doing wrong?