Skip to content

Commit

Permalink
add include_ics as optional param to getSmartInvite method
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan committed Dec 1, 2021
1 parent 86e7847 commit a92bf1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Cronofy.php
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ public function cancelSmartInvite($params)
return $this->apiKeyHttpPost("/" . self::API_VERSION . "/smart_invites", $postFields);
}

public function getSmartInvite($smart_invite_id, $recipient_email)
public function getSmartInvite($smart_invite_id, $recipient_email, $include_ics = false)
{
/*
String smart_invite_id: A string representing the id for the smart invite. REQUIRED
Expand All @@ -960,6 +960,7 @@ public function getSmartInvite($smart_invite_id, $recipient_email)
$urlParams = [
"smart_invite_id" => $smart_invite_id,
"recipient_email" => $recipient_email,
"include_ics" => $include_ics,
];

return $this->apiKeyHttpGet("/" . self::API_VERSION . "/smart_invites", $urlParams);
Expand Down

0 comments on commit a92bf1a

Please sign in to comment.