README
eBecas
Promise-based Node.js package to communicate with eBecas (Student Management System) through its API.
Supported Versions
This package works with node versions 8 and above.
Installing
ebecas can be installed via npm:
npm i ebecas
Example
const ebecas=require('ebecas');
const client=ebecas.createClient({
api_username: USERNAME,
api_password: PASSWORD,
api_collegecode: COLLEGECODE,
username:USERNAME,//username of a user with Post permissions
});
//Get the personal information of a student providing the Student id (20162)
client.getStudentById("20162")
.then(
function (response) {
// handle fulfillment on the promise
console.log(response.data);
},
function(err) {
//Handle rejection on the promise
console.log(err.response.status+" "+err.response.statusText);
}
)
.catch(function(err){
//Handle error
});
License
The project is available as open source under the terms of the MIT License.