Created
May 2, 2024 01:24
-
-
Save arifnd/25f7ae9cc853951c62a41f18f357d703 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set TOKEN=YOUR_TOKEN | |
| set NPSN=YOUR_NPSN | |
| curl -X GET ^ | |
| -H "Authorization: Bearer %TOKEN%" ^ | |
| "http://localhost:5774/WebService/getSekolah?npsn=%NPSN%" > data-sekolah.txt | |
| curl -X GET ^ | |
| -H "Authorization: Bearer %TOKEN%" ^ | |
| "http://localhost:5774/WebService/getRombonganBelajar?npsn=%NPSN%" > data-rombel.txt | |
| curl -X GET ^ | |
| -H "Authorization: Bearer %TOKEN%" ^ | |
| "http://localhost:5774/WebService/getPTK?npsn=%NPSN%" > data-ptk.txt | |
| curl -X GET ^ | |
| -H "Authorization: Bearer %TOKEN%" ^ | |
| "http://localhost:5774/WebService/getPesertaDidik?npsn=%NPSN%" > data-siswa.txt | |
| echo Request completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment