README
IT Source Providers
A node.js sdk to interface with (https://attendance.itsourceproviders.com//)
Classes
- itsourceproviders.attendance.User
- itsourceproviders.attendance.Course
You can mark attendance for teachers and students.
Installation
npm install wwwitsourceproviders-attendanceapi
Development
const itsourceproviders = require('wwwitsourceproviders-attendanceapi');
//set credentials
itsourceproviders.attendance.Setting.setCredentials('credentials.json');
//mark user attendance
itsourceproviders.attendance.User.addAttendance('daniel@itsourceproviders.net','2020-11-01 12:00:00',itsourceproviders.attendance.State.PRESENT)
.then(function(d){
console.log('complete');
})
.catch(function(err){
console.log(err);
});
const itsourceproviders = require('wwwitsourceproviders-attendanceapi');
//set credentials
itsourceproviders.attendance.Setting.setCredentials('credentials.json');
//mark course attendance
itsourceproviders.attendance.Course.addAttendance('ExpirementalHumanandSocialGqOmGmorP','daniel@itsourceproviders.net','2020-11-01 12:00:00',itsourceproviders.attendance.State.PRESENT)
.then(function(d){
console.log('complete');
})
.catch(function(err){
console.log(err);
});
itsourceproviders.attendance.Course.getAttendance(
'ExpirementalHumanandSocialGqOmGmorP',
'daniel@itsourceproviders.net',
2020,
2
)
.then(function(d){
console.log(d.body);
})
.catch(function(err){
console.log(err);
});