This tool is a link with customizable parameters that can be used to create an event on-the-fly, or send your users to their calendar service where they can add your event, or attach your event to an email you send to your users.
The API requires an API token to work.
Please sign in or
create an account to receive your
accounts API tokens.
Create an event on-the-fly (endpoint: event page)
Creates an event on-the-fly. The users end up on an event page.
<a href="https://www.addevent.com/dir/?client=CLIENT&start=start&end=end&title=title&timezone=timezone">Add to Calendar</a>
<a href="https://www.addevent.com/dir/?client=USER-CLIENT-ID&start=12%2F05%2F2024+09%3A00+AM&end=12%2F05%2F2024+11%3A00+AM&title=Title+of+the+event&description=Description+of+the+event&location=1600+Amphitheatre+Pkwy%2C+Mountain+View%2C+CA+94043&timezone=America%2FLos_Angeles">Add to Calendar</a>
Create an event on-the-fly (endpoint: calendar service)
Creates an event on-the-fly. Downloads an event file or redirects the user to the calendar client.
Add to Calendar:
<a href="https://www.addevent.com/dir/?client=CLIENT&start=start&end=end&title=title&timezone=timezone&service=service">Link Text</a>
Add to Calendar:
<a href="https://www.addevent.com/dir/?client=USER-CLIENT-ID&start=12%2F05%2F2024+09%3A00+AM&end=12%2F05%2F2024+11%3A00+AM&title=Title+of+the+event&description=Description+of+the+event&location=1600+Amphitheatre+Pkwy%2C+Mountain+View%2C+CA+94043&timezone=America%2FLos_Angeles&service=apple">Apple</a>
<a href="https://www.addevent.com/dir/?client=USER-CLIENT-ID&start=12%2F05%2F2024+09%3A00+AM&end=12%2F05%2F2024+11%3A00+AM&title=Title+of+the+event&description=Description+of+the+event&location=1600+Amphitheatre+Pkwy%2C+Mountain+View%2C+CA+94043&timezone=America%2FLos_Angeles&service=google">Google</a>
<a href="https://www.addevent.com/dir/?client=USER-CLIENT-ID&start=12%2F05%2F2024+09%3A00+AM&end=12%2F05%2F2024+11%3A00+AM&title=Title+of+the+event&description=Description+of+the+event&location=1600+Amphitheatre+Pkwy%2C+Mountain+View%2C+CA+94043&timezone=America%2FLos_Angeles&service=office365">Office 365</a>
<a href="https://www.addevent.com/dir/?client=USER-CLIENT-ID&start=12%2F05%2F2024+09%3A00+AM&end=12%2F05%2F2024+11%3A00+AM&title=Title+of+the+event&description=Description+of+the+event&location=1600+Amphitheatre+Pkwy%2C+Mountain+View%2C+CA+94043&timezone=America%2FLos_Angeles&service=outlook">Outlook</a>
<a href="https://www.addevent.com/dir/?client=USER-CLIENT-ID&start=12%2F05%2F2024+09%3A00+AM&end=12%2F05%2F2024+11%3A00+AM&title=Title+of+the+event&description=Description+of+the+event&location=1600+Amphitheatre+Pkwy%2C+Mountain+View%2C+CA+94043&timezone=America%2FLos_Angeles&service=outlookcom">Outlook.com</a>
<a href="https://www.addevent.com/dir/?client=USER-CLIENT-ID&start=12%2F05%2F2024+09%3A00+AM&end=12%2F05%2F2024+11%3A00+AM&title=Title+of+the+event&description=Description+of+the+event&location=1600+Amphitheatre+Pkwy%2C+Mountain+View%2C+CA+94043&timezone=America%2FLos_Angeles&service=yahoo">Yahoo</a>
Attach an event in newsletters
If you send emails using a Mail API or your own code you can
attach an event file in an email.
In the example you'll find an example
on how to attach an event using the Mandrill Mail API.
The same technique can be applied to almost any other service used for sending out emails.
https://www.addevent.com/dir/?client=CLIENT&start=start&end=end&title=title&description=description&timezone=timezone&service=stream
// Get event file for attachment
$attachment = file_get_contents('https://www.addevent.com/dir/?
client=USER-CLIENT-ID&start=12%2F05%2F2024+09%3A00+AM&
end=12%2F05%2F2024+11%3A00+AM&title=Title+of+the+event&
description=Description+of+the+event&timezone=America%2FLos_Angeles&
service=stream');
// Event file: Base 64 encode the event file
$attachment_encoded = base64_encode($attachment);
// Set message object
$compose = array(
'html' => 'Email content',
'subject' => 'Email subject',
'from_email' => 'from@example.com',
'to' => array(
array(
'email' => 'to@example.com'
)
),
'attachments' => array(
array(
'content' => $attachment_encoded,
'type' => 'text/calendar',
'name' => 'event.ics',
)
)
);
// Send the email
$response = $mandrill->messages->send($compose);