Skip to content

Instantly share code, notes, and snippets.

@vladimirmyshkovski
Last active November 5, 2018 16:08
Show Gist options
  • Save vladimirmyshkovski/f8213ee43f142431e3b7ed29be32889f to your computer and use it in GitHub Desktop.
Save vladimirmyshkovski/f8213ee43f142431e3b7ed29be32889f to your computer and use it in GitHub Desktop.
Получения списка пользователей во время вебинара на bizon365.ru
function getRuntimeData() {
var roomId = "11338:jnynj5hc0";
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://start.bizon365.ru/admin/room/" + roomId + "/getruntimedata", false);
xhr.withCredentials = true;
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
console.log('success');
var response = JSON.parse(xhr.responseText);
for (var i = 0; i < response.users.length; i++) {
console.log(response.users[i].username);
}
} else {
console.log('fail');
}
}
xhr.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment