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
============================VALID============================== | |
{ | |
"actor": { | |
"mbox": "mailto:lou.wolford.ctr@adlnet.gov" | |
}, | |
"verb": { | |
"id": "http://adlnet.gov/expapi/verbs/answered" | |
}, | |
"object": { | |
"id": "http://adlnet.gov/expapi/activities/example" |
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
import com.google.gson.JsonObject; | |
import gov.adlnet.xapi.client.ActivityClient; | |
import gov.adlnet.xapi.client.StatementClient; | |
import gov.adlnet.xapi.model.*; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.util.HashMap; | |
import java.util.UUID; |
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
<tom@example.com> <attended | http://example.com/verbs/attended> <xAPI Bootcamp 2015> | |
<tom@example.com> <observed | http://example.com/verbs/observed> <web-based xapi content> ( completion: true, success: true, duration: "PT1H30M" ) | |
<tom@example.com> <observed | http://example.com/verbs/observed> <web-based xapi content> ( completion: true, success: true, duration: "PT1H30M" ) { parent: ["xAPI Bootcamp 2015"] } |
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
{ | |
"actor": { | |
"account": { | |
"homePage": "http://vwf.adlnet.gov", | |
"name": "Anonymous" | |
}, | |
"name": "Anonymous", | |
"objectType": "Agent" | |
}, | |
"verb": { |
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
{ | |
"actor": { | |
"mbox": "mailto:tom@example.com", | |
"name": "tom", | |
"objectType": "Agent" | |
}, | |
"verb": { | |
"display": { | |
"en-US": "entered" | |
}, |
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
{ | |
"actor": { | |
"mbox": "mailto:gonzalo.microsoft@gmail.com", | |
"name": "gonzalop", | |
"objectType": "Agent" | |
}, | |
"verb": { | |
"display": { | |
"en-US": "experienced" | |
}, |
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
<!doctype html> | |
<html> | |
<head> | |
<script type="text/javascript" src="xapiwrapper.min.js"></script> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
// Set xAPI endpoint | |
var conf = {"endpoint":"https://lrs.adlnet.gov/xapi/", "auth":"Basic " + toBase64('tom:1234')}; | |
ADL.XAPIWrapper.changeConfig(conf); |
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
<!doctype html> | |
<html> | |
<head> | |
<script type="text/javascript" src="xapiwrapper.min.js"></script> | |
<script type="text/javascript" src="xapicollection.min.js"></script> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
// Set xAPI endpoint | |
var conf = {"endpoint":"https://lrs.adlnet.gov/xapi/", "auth":"Basic " + toBase64('tom:1234')}; |