This file contains 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
<script> | |
// Enable 'Sessions enabled' in Manage Site > Configuration > Settings > API | |
// Then use this script in Manage Site > Design > Pages or Scripts to fetch users | |
document.addEventListener('DOMContentLoaded', function(){ | |
// Define variables | |
var url = '/api/v1/user/list', result, list, user; | |
// Do ajax call using hq.js | |
hq.ajax(url, { | |
success: function(json) { |
NewerOlder