0

我正在使用 tin can api 或 xAPI,我尝试使用此 javascript 代码向 LRS 发送 JSON 语句,它工作正常,但我有一个问题,我需要发送特定记录,例如在窗口浏览器中打开的 URL 或任何记录但它无法发送任何帮助

$(window).ready(function(){
    $(".clickme").click(function(){
        var url = window.URL;
        var tincan = new TinCan ({
            recordStores: [{
                endpoint: "https://cloud.scorm.com/tc/HD1A9O7JK5/",
                username: "naaj11@hotmail.com",
                password: "******* my Pass",
                allowFail: false
            }]
        });

        tincan.sendStatement({
            actor: {
                mbox: "mailto:your.email.address@example.com"
            },
            verb: {
                id: "http://adlnet.gov/expapi/verbs/attempted"
            },
            target: {
                id: "http://tincanapi.com/activities/sending-my-new-statement"    
            }
        });
    })
});
4

0 回答 0