Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var schoolIds = [1318, 1452, 1320, 1432, 1322, 1324, 1326, 1328, 1330, 1332, 1334, 1312, 1336, 1524, 1314, 1338, 1340, 1406, 1342, 1504, 1344, 1482, 1468, 1346, 1348, 1512, 1350, 1352, 1316, 1480, 1400, 1354, 1356, 1410, 1358, 1360, 1500, 1362, 1364, 1366, 1466, 1368, 1370, 1514, 1372, 1484, 1374, 1376, 1378, 1456, 1496, 1380, 1440, 1382, 1408, 1384, 1476, 1506, 1386, 1388, 1492, 1418, 1390, 1392, 1394, 1396, 1420, 1398, 1522, 1202, 1494, 1204, 1206, 1436, 1444, 1450, 1208, 1488, 1210, 1212, 1422, 1214, 1216, 1424, 1218, 1220, 1462, 1562, 1426, 1222, 1430, 1442, 1224, 1486, 1226, 1228, 1458, 1230, 1232, 1234, 1510, 1236, 1238, 1240, 1542, 1242, 1244, 1246, 1474, 1248, 1250, 1472, 1252, 1254, 1256, 1404, 1258, 1508, 1260, 1402, 1470, 1262, 1520, 1264, 1266, 1528, 1416, 1268, 1270, 1414, 1526, 1460, 1518, 1490, 1272, 1274, 1446, 1276, 1278, 1280, 1412, 1282, 1284, 1286, 1516, 1428, 1288, 1290, 1292, 1438, 1294, 1464, 1296, 1298, 1478, 1498, 1448, 1300, 1502, 1302, 1304, 1306, 1308, 1530, 1310, 1584, 1454, 1532, 1582, 1564];
- var schoolList = [];
- for (var i = 0; i < schoolIds.length; i++){
- var schoolId = schoolIds[i];
- $.ajax({
- url: 'https://apps.aamc.org/msar-service/medSchool/' + schoolId + '/profile'
- }).done(function (data) {
- var school = {
- Id: data.medicalSchoolId,
- Name: data.shortName,
- MCAT: data.medSchoolMcat,
- GPA: data.medSchoolGpa,
- RawData: data,
- }
- schoolList.push(school);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement