users - Initialization - Events API

Events API Initialization

users

A definition list of users (learners) to receive events from. This object maps each user_id to its corresponding hash which is required for subscribing to the Learnosity Event Bus for events from these users.

You would want to use this to receive events from a specific set of users, such as a class of learners, for example.

Examples

var initializationOptions = {
    "users": {
        "learner001": "7224f1cd26c7eaac4f30c16ccf8e143005734089724affe0dd9cbf008b941e2d",
        "learner002": "1e94cba9c43295121a8c93c476601f4f54ce1ee93ddc7f6fb681729c90979b7f",
        "learner003": "ca2d79d6e1c6c926f2b49f3d6052c060bed6b45e42786ff6c5293b9f3c723bdf",
        "learner004": "fd1888ffc8cf87efb4ab620401130c76fc8dff5ca04f139e23a7437c56f8f310"
    }
};

Values

Attribute path users

Type object

The hash is a 64 character string, which is generated by applying the SHA256 hashing algorithm to the concatenation of the following values in order:

  1. user_id
  2. consumer_secret
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.