Skip to content

Instantly share code, notes, and snippets.

@jwalton922
Created January 31, 2018 19:19
Show Gist options
  • Save jwalton922/09a0587865f12d8c3904c657739afd1a to your computer and use it in GitHub Desktop.
Save jwalton922/09a0587865f12d8c3904c657739afd1a to your computer and use it in GitHub Desktop.
QUERY
{
engagementQueryV3(
courseSectionId: ["cs1"],
reportingContextId:["book1"],
learningResourceId: ["book1"],
filter: {
timeWindow: {
gt: "2018-01-30"
lte: "2018-01-21"
}
},
timeBin: HOUR
) {
timeBin
data {
timeSpentTotal
learningResource {learningResourceId}
student {studentID}
}
}
}
RESPONSE
{
"engagementQueryV3": [
{
"timeBin": "2018-01-31T08:00:00",
"data" : [
{
"timeSpentTotal" : 300
"learningResource" : {"learningResourceId": "book1"},
"student" : {"studentId": "student1"}
},
{
"timeSpentTotal" : 450
"learningResource" : {"learningResourceId": "book1"},
"student" : {"studentId": "student2"}
}
]
},
"timeBin": "2018-01-31T09:00:00",
"data" : [
{
"timeSpentTotal" : 450
"learningResource" : {"learningResourceId": "book1"},
"student" : {"studentId": "student2"}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment