-
Notifications
You must be signed in to change notification settings - Fork 13
RegisterEvent
Pawel Sawicz edited this page Jan 26, 2015
·
4 revisions
var eventRequest = new Api.Sdk.Model.Event.Event
{
Name = "Playing Mario for 48 hours for charity",
Description = "This is an event description",
CompletionDate = new DateTime(2016, 1, 1),
ExpiryDate = new DateTime(2020, 1, 1),
StartDate = DateTime.Now,
EventType = "OtherCelebration"
};
var response = client.Event.Create(eventRequest);
var eventUri = response.Next.Uri;
include_once 'ApiClients/Model/Event.php';
$event = new Event();
$event->name = "Playing Mario for 48 hours for charity";
$event->description = "This is an event description";
$event->completionDate = "/Date(1437060163998+0100)/";
$event->expiryDate = "/Date(1437060163998+0100)/";
$event->startDate = "/Date(1405696963998+0100)/";
$event->eventType = "OtherCelebration";
$event->location = "Test Location";
$response = $client->Event->Create($event);
echo $response->next->rel;