Last active
January 24, 2019 17:35
-
-
Save jasonboukheir/1ad72d038dd0cc5514250cb514e3f090 to your computer and use it in GitHub Desktop.
An example with Karuna Event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Karuna; | |
using System; | |
public static class App { | |
// IMPORTANT: Karuna.Event requires users to be logged in!!! | |
public static void Main() { | |
// We have to declare the Karuna namespace because there are other Event classes. | |
Karuna.Event e = new Karuna.Event() { | |
// Optional: | |
// The server will fill this in with current date/time if you make it null. | |
Created = DateTime.Now, | |
// Required | |
EventType = "What is the type or name of this event?", | |
// Required | |
EventValue = "What value was added/updated/etc.?" | |
}; | |
API.Create(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment