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
// Get your API credentials at https://app.schoology.com/api and insert them below. | |
// Go to https://api.schoology.com/404 to avoid CORS problems. | |
// Paste the script in console, wait for "Ready," then call the function searchSection(sectionId). | |
const CONSUMER_KEY = ">>>YOUR_API_KEY<<<"; | |
const CONSUMER_SECRET = ">>>YOUR_API_SECRET<<<"; | |
var users = [], userCourses = [], matches = []; | |
async function fetchUsers() { | |
users = []; | |
let numUsers = 1000; |