adlnet / xAPIWrapper

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

how clould get the statement from other lrs rather than adl lrS #65

Closed chung771026 closed 8 years ago

chung771026 commented 8 years ago

i use the scorm cloud for my lrs. but node say my endpoint is invalid. it seem like it only can get the statements from ADL_LRS

"info: 401 info: Credentials invalid for this endpoint. undefined:1 Credentials invalid for this endpoint."

creighton commented 8 years ago

The response seems to say that there is an issue with your username and password. The wrapper only support HTTP Basic Authentication right now. You change it by setting the new username and password in a configuration object.

See https://github.com/adlnet/xAPIWrapper#configuration

var conf = {
  "endpoint" : "https://lrs.adlnet.gov/xapi/", //<< change to your scorm cloud endpoint
  "user" : "tom", //<< change to your scorm cloud username
  "password" : "1234", //<< change to your scorm cloud password
};
ADL.XAPIWrapper.changeConfig(conf);
creighton commented 8 years ago

closing due to lack of activity, feel free to reopen if this isn't resolved