addUsers - Methods - Events API

Events API Methods

addUsers()

Register additional users (learners) to subscribe or publish to.

You would want to use this method to add users after the eventsApp has been initialialized.

Examples

var userHashes = {
    '5fb6d972-157b-4e25-b449-85e58089e714': '9bcffb8898d59fc3f3e425faa1041bf6b8f8950997cbb9cc37d576368be5d341'
};

eventsApp.addUsers(userHashes);

Arguments

  • userHashes object

    An object with the user ID and hash as key-value pairs.

    • myUserId string

      The key is the user ID and the value is the SHA256 hash of the concatenated user ID and consumer secret.

Return value

None (undefined).

Was this article helpful?

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