Skip to content

Instantly share code, notes, and snippets.

@jasonboukheir
Last active January 24, 2019 17:35
Show Gist options
  • Save jasonboukheir/1ad72d038dd0cc5514250cb514e3f090 to your computer and use it in GitHub Desktop.
Save jasonboukheir/1ad72d038dd0cc5514250cb514e3f090 to your computer and use it in GitHub Desktop.
An example with Karuna Event
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