1. Go to this page and download the library: Download codernewbie04/my-telu library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codernewbie04 / my-telu example snippets
use Codernewbie04\MyTelu\MyTelu;
$mytelu = new MyTelu()->login("username", "password");
//get Resposne
$res = $mytelu->getResponse();
if($res->getStatus()){
//If logged in
} else {
//invalid auth
}
use Codernewbie04\MyTelu\MyTelu;
//get JWT_TOKEN from login
$mytelu = new MyTelu("JWT_TOKEN")->profile();
//get Resposne
$res = $mytelu->getResponse();
if($res->getStatus()){
//If auth token correct
} else {
//invalid auth
}
use Codernewbie04\MyTelu\MyTelu;
$mytelu = new MyTelu()->schedule("Student ID / NIM");
//get Resposne
$res = $mytelu->getResponse();
if($res->getStatus()){
//Success get schedule
} else {
//Failed get schedule
}
use Codernewbie04\MyTelu\MyTelu;
// periode Tahun ajaran 2020/2021
// semester 1 : Ganjil / 2 : Genap
// subjectid : course ID, bisa didapatkan lewat jadwal / LMS / Igracias
//example new MyTelu()->grades("130120xxxx", 2021, 1, 25809)
$mytelu = new MyTelu()->grades("Student ID / NIM", "periode", "semester", "subjectid");
//get Resposne
$res = $mytelu->getResponse();
//action with ur response
use Codernewbie04\MyTelu\MyTelu;
$mytelu = new MyTelu()->scanQR("Student ID / NIM", "QR CODE IN STRING");
//get Resposne
$res = $mytelu->getResponse();
if($res->getStatus()){
//If success scan qr code with ur nim
} else {
//Failed
}