adlnet / xAPIWrapper

Wrapper to simplify communication to an LRS
https://adlnet.gov/projects/xapi/
Apache License 2.0
214 stars 114 forks source link

Cannot Get statements, but also without error #149

Closed LiangZhang2017 closed 5 years ago

LiangZhang2017 commented 5 years ago

Here, I have changed the auth information in xapiwrapper.js (it will automatically obtain the input value from HTML web page). When I run the code for getting statements, it responses without error. But I still don't know if the statements is obtained or not. I also tried to send statements to LRS (using the method "Send Statement without Callback" in Readme), I think it failed. Because I did not find any new sttements in LRS. Here, I use Learning Locker as the LRS.

1) Do you have some trick to test if the current code can query the LRS? How to display the statements for making sure it? 2)When I use the command line "ADL.XAPIWrapper.log("[" + resp_obj.id + "]: " + resp_obj.xhr.status + " - " + respobj.xhr.statusText);" it also shows error like that **.id_** is not defined.

Sorry I am just a new guy in xAPI field, and some question maybe very basic. Thanks for your help.