File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
require __DIR__ . '/vendor/autoload.php ' ;
6
6
7
7
try {
8
- $ nim = new Nim ('211351143 ' );
8
+ $ nim = new Nim ('231331011 ' );
9
9
10
10
var_dump ($ nim ->dump ());
11
11
} catch (\Exception $ e ) {
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ private function prepareList()
52
52
return ;
53
53
}
54
54
55
- $ response = $ this ->http ->request ('GET ' , "api/pencarian/mhs/ $ this ->nim " , [
55
+ $ response = $ this ->http ->request ('GET ' , "api/pencarian/all/WASTUKANCANA%20 $ this ->nim " , [
56
56
'headers ' => $ this ->headers ,
57
57
]);
58
58
$ data = $ this ->parseResponse ($ response );
59
59
60
- $ this ->id = $ data [0 ]->id ?? null ;
61
- $ this ->name = $ data [0 ]->nama ?? null ;
60
+ $ this ->id = $ data-> mahasiswa [0 ]->id ?? null ;
61
+ $ this ->name = $ data-> mahasiswa [0 ]->nama ?? null ;
62
62
}
63
63
64
64
private function prepareDetail ()
You can’t perform that action at this time.
0 commit comments