Last active
November 5, 2018 16:08
-
-
Save vladimirmyshkovski/f8213ee43f142431e3b7ed29be32889f to your computer and use it in GitHub Desktop.
Получения списка пользователей во время вебинара на bizon365.ru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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