Data Integration
Mandatory Events
Educational Apps
18min
the following events are useful for those apps which provide different courses which can be consumed by the end users as our terminology says, for an educational app, item is your courses click item when the user clicks on a course properties name type required description item premium item docid\ xyfflvav fzf01nmc2zn yes the item details on which the user clicked code example const props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false } }; cooeesdk sendevent("click item", props);const props = { 'item' { 'id' '1234', 'name' 'item name', 'category' { 'id' '1234', "name" 'category name' }, 'ispaid' true, 'hastrial' false } }; cooeesdk sendevent("click item", props);map\<string, object> item = new hashmap<>(); item put("id", "1234"); item put("name", "item name"); item put("ispaid", true); item put("hastrial", false); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); item put("category", category); map\<string, object> props = new hashmap<>(); props put("item", item); cooeesdk sendevent("click item", props);val props = mapof( "item" to mapof( "id" to "1234", "name" to "item name", "category" to mapof( "id" to "1234", "name" to "category name" ), "ispaid" to true, "name" to false ) ) cooeesdk sendevent("click item", props)nsdictionary props = @{ @"item" @{ @"id" @"1234", @"name" @"item name", @"category" @{ @"id" @"1234", @"name" @"category name" }, @"ispaid" @true, @"hastrial" @false } }; @try { \[cooeesdk sendeventwitheventname @"click item" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "item" \[ "id" "1234", "name" "item name", "category" \[ "id" "1234", "name" "category name" ], "ispaid" true, "hastrial" false ] ] do { try cooeesdk sendevent(eventname "click item", eventproperties props) } catch { print("\\(error)") } dart var props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false } }; cooeesdk sendevent("click item", props); view item when a user views the detail page of your course properties name type required description item premium item docid\ xyfflvav fzf01nmc2zn yes the item details that the user view code example const props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false } }; cooeesdk sendevent("view item", props);const props = { 'item' { 'id' '1234', 'name' 'item name', 'category' { 'id' '1234', "name" 'category name' }, 'ispaid' true, 'hastrial' false } }; cooeesdk sendevent("view item", props);map\<string, object> item = new hashmap<>(); item put("id", "1234"); item put("name", "item name"); item put("ispaid", true); item put("hastrial", false); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); item put("category", category); map\<string, object> props = new hashmap<>(); props put("item", item); cooeesdk sendevent("view item", props);val props = mapof( "item" to mapof( "id" to "1234", "name" to "item name", "category" to mapof( "id" to "1234", "name" to "category name" ), "ispaid" to true, "name" to false ) ) cooeesdk sendevent("view item", props)nsdictionary props = @{ @"item" @{ @"id" @"1234", @"name" @"item name", @"category" @{ @"id" @"1234", @"name" @"category name" }, @"ispaid" @true, @"hastrial" @false } }; @try { \[cooeesdk sendeventwitheventname @"view item" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "item" \[ "id" "1234", "name" "item name", "category" \[ "id" "1234", "name" "category name" ], "ispaid" true, "hastrial" false ] ] do { try cooeesdk sendevent(eventname "view item", eventproperties props) } catch { print("\\(error)") } dart var props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false } }; cooeesdk sendevent("view item", props); item complete when a user completes a course (pass the exam if any) properties name type required description item premium item docid\ xyfflvav fzf01nmc2zn yes the item details that the user view code example const props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false } }; cooeesdk sendevent("item complete", props);const props = { 'item' { 'id' '1234', 'name' 'item name', 'category' { 'id' '1234', "name" 'category name' }, 'ispaid' true, 'hastrial' false } }; cooeesdk sendevent("item complete", props);map\<string, object> item = new hashmap<>(); item put("id", "1234"); item put("name", "item name"); item put("ispaid", true); item put("hastrial", false); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); item put("category", category); map\<string, object> props = new hashmap<>(); props put("item", item); cooeesdk sendevent("item complete", props);val props = mapof( "item" to mapof( "id" to "1234", "name" to "item name", "category" to mapof( "id" to "1234", "name" to "category name" ), "ispaid" to true, "name" to false ) ) cooeesdk sendevent("item complete", props)nsdictionary props = @{ @"item" @{ @"id" @"1234", @"name" @"item name", @"category" @{ @"id" @"1234", @"name" @"category name" }, @"ispaid" @true, @"hastrial" @false } }; @try { \[cooeesdk sendeventwitheventname @"item complete" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "item" \[ "id" "1234", "name" "item name", "category" \[ "id" "1234", "name" "category name" ], "ispaid" true, "hastrial" false ] ] do { try cooeesdk sendevent(eventname "item complete", eventproperties props) } catch { print("\\(error)") } dart var props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false } }; cooeesdk sendevent("item complete", props); view category when the user browses a category properties name type required description category category docid\ xyfflvav fzf01nmc2zn yes the category that the user selected code example const props = { "category" { "id" "1234", "name" "category name" } }; cooeesdk sendevent("view category", props);const props = { 'category' { 'id' '1234', "name" 'category name' } }; cooeesdk sendevent("view category", props);map\<string, object> props = new hashmap<>(); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); props put("category", category); cooeesdk sendevent("view category", props);val props = mapof( "category" to mapof( "id" to "1234", "name" to "category name" ) ) cooeesdk sendevent("view category", props)nsdictionary props = @{ @"category" @{ @"id" @"1234", @"name" @"category name" } }; @try { \[cooeesdk sendeventwitheventname @"view category" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "category" \[ "id" "1234", "name" "category name" ] ] do { try cooeesdk sendevent(eventname "view category", eventproperties props) } catch { print("\\(error)") } dart var props = { "category" { "id" "1234", "name" "category name" } }; cooeesdk sendevent("view category", props); rate item when a user provides a rating for any course properties name type required description item premium item docid\ xyfflvav fzf01nmc2zn yes the item details which user gave a rating rating integer yes number of stars out of 5 given by user to the item code example const props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false }, "rating" 4 }; cooeesdk sendevent("rate item", props);const props = { 'item' { 'id' '1234', 'name' 'item name', 'category' { 'id' '1234', "name" 'category name' }, 'ispaid' true, 'hastrial' false }, 'rating' 4 }; cooeesdk sendevent("rate item", props);map\<string, object> item = new hashmap<>(); item put("id", "1234"); item put("name", "item name"); item put("ispaid", true); item put("hastrial", false); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); item put("category", category); map\<string, object> props = new hashmap<>(); props put("item", item); props put("rating", 4); cooeesdk sendevent("item complete", props);val props = mapof( "item" to mapof( "id" to "1234", "name" to "item name", "category" to mapof( "id" to "1234", "name" to "category name" ), "ispaid" to true, "name" to false ), "rating" to 4 ) cooeesdk sendevent("rate item", props)nsdictionary props = @{ @"item" @{ @"id" @"1234", @"name" @"item name", @"category" @{ @"id" @"1234", @"name" @"category name" }, @"ispaid" @true, @"hastrial" @false }, @"rating" @4 }; @try { \[cooeesdk sendeventwitheventname @"rate item" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "item" \[ "id" "1234", "name" "item name", "category" \[ "id" "1234", "name" "category name" ], "ispaid" true, "hastrial" false ], "rating" 4 ] do { try cooeesdk sendevent(eventname "rate item", eventproperties props) } catch { print("\\(error)") } dart var props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false }, "rating" 4 }; cooeesdk sendevent("rate item", props); download certificate when the user downloads the certificate of a course properties name type required description item premium item docid\ xyfflvav fzf01nmc2zn yes the item details for which the user downloaded a certificate code example const props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false } }; cooeesdk sendevent("download certificate", props);const props = { 'item' { 'id' '1234', 'name' 'item name', 'category' { 'id' '1234', "name" 'category name' }, 'ispaid' true, 'hastrial' false } }; cooeesdk sendevent("download certificate", props);map\<string, object> item = new hashmap<>(); item put("id", "1234"); item put("name", "item name"); item put("ispaid", true); item put("hastrial", false); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); item put("category", category); map\<string, object> props = new hashmap<>(); props put("item", item); cooeesdk sendevent("download certificate", props);val props = mapof( "item" to mapof( "id" to "1234", "name" to "item name", "category" to mapof( "id" to "1234", "name" to "category name" ), "ispaid" to true, "name" to false ) ) cooeesdk sendevent("download certificate", props)nsdictionary props = @{ @"item" @{ @"id" @"1234", @"name" @"item name", @"category" @{ @"id" @"1234", @"name" @"category name" }, @"ispaid" @true, @"hastrial" @false } }; @try { \[cooeesdk sendeventwitheventname @"download certificate" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "item" \[ "id" "1234", "name" "item name", "category" \[ "id" "1234", "name" "category name" ], "ispaid" true, "hastrial" false ] ] do { try cooeesdk sendevent(eventname "download certificate", eventproperties props) } catch { print("\\(error)") } dart var props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false } }; cooeesdk sendevent("download certificate", props); download badge when the user downloads/access the badge properties name type required description item premium item docid\ xyfflvav fzf01nmc2zn yes the item details for which the user downloads the badge badgeid string yes id of the badge code example const props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false }, "badgeid" "b1234" }; cooeesdk sendevent("download badge", props);const props = { 'item' { 'id' '1234', 'name' 'item name', 'category' { 'id' '1234', "name" 'category name' }, 'ispaid' true, 'hastrial' false }, 'badgeid' "b1234" }; cooeesdk sendevent("download badge", props);map\<string, object> item = new hashmap<>(); item put("id", "1234"); item put("name", "item name"); item put("ispaid", true); item put("hastrial", false); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); item put("category", category); map\<string, object> props = new hashmap<>(); props put("item", item); props put("badgeid", "b1234"); cooeesdk sendevent("download badge", props);val props = mapof( "item" to mapof( "id" to "1234", "name" to "item name", "category" to mapof( "id" to "1234", "name" to "category name" ), "ispaid" to true, "name" to false ), "rating" to "b1234" ) cooeesdk sendevent("download badge", props)nsdictionary props = @{ @"item" @{ @"id" @"1234", @"name" @"item name", @"category" @{ @"id" @"1234", @"name" @"category name" }, @"ispaid" @true, @"hastrial" @false }, @"badgeid" @"b1234" }; @try { \[cooeesdk sendeventwitheventname @"download badge" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "item" \[ "id" "1234", "name" "item name", "category" \[ "id" "1234", "name" "category name" ], "ispaid" true, "hastrial" false ], "badgeid" "b1234" ] do { try cooeesdk sendevent(eventname "download badge", eventproperties props) } catch { print("\\(error)") } dart var props = { "item" { "id" "1234", "name" "item name", "category" { "id" "1234", "name" "category name" }, "ispaid" true, "hastrial" false }, "badgeid" "b1234" }; cooeesdk sendevent("download badge", props);