caccl-api
Advanced tools
Comparing version 2.1.8 to 2.1.9
{ | ||
"name": "caccl-api", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"description": "A class that defines a set of smart Canvas endpoints that actually behave how you'd expect them to.", | ||
@@ -51,6 +51,6 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"caccl-error": "^2.1.8", | ||
"caccl-send-request": "^2.1.8", | ||
"caccl-error": "^2.1.9", | ||
"caccl-send-request": "^2.1.9", | ||
"fast-clone": "^1.5.13" | ||
} | ||
} |
import initAPI from './src'; | ||
import { DateHandlingType, DayOfWeek } from './src/endpoints/ECatCourse/types/DateHandling' | ||
@@ -9,3 +8,3 @@ const api = initAPI({ | ||
// accessToken: '1875~WxjfygW6HE7hfmZZeZfnKMz2LsdcnjyotMdIhQZP4AZ79vZLGIwHWEKTfwCDZk7R', | ||
accessToken: '1875~Tcdp76BIAjRse0HazvwY491cKy8RF7ggSXKIUck2Ff50bKa4Fi7CweEnmMbkA8nN', | ||
accessToken: '1875~YcklUjUNdSxBI7E2LnBIdShvUl2oZ0HkhJMCcu09ab2Jg0HJUaU8KZ7Up1TkSMKF', | ||
}); | ||
@@ -15,9 +14,15 @@ | ||
console.log('Working...'); | ||
const ag = await api.course.assignmentGroup.update({ | ||
assignmentGroupId: 199535, | ||
courseId: 53450, | ||
dropLowest: 1, | ||
neverDrop: [569172], | ||
// const ag = await api.course.assignmentGroup.update({ | ||
// assignmentGroupId: 199535, | ||
// courseId: 53450, | ||
// dropLowest: 1, | ||
// neverDrop: [569172], | ||
// }); | ||
const x = await api.course.app.list({ courseId: 131221 }); | ||
x.forEach((app) => { | ||
console.log(app.name, app.url); | ||
if (!app.url) { | ||
console.log(app); | ||
} | ||
}); | ||
console.log(ag); | ||
// const assignmentIds = [587684]; | ||
@@ -24,0 +29,0 @@ // for (let i = 0; i < assignmentIds.length; i++) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5714286
27162
Updatedcaccl-error@^2.1.9
Updatedcaccl-send-request@^2.1.9