Skip to content

Instantly share code, notes, and snippets.

@arifnd
Created May 2, 2024 01:24
Show Gist options
  • Select an option

  • Save arifnd/25f7ae9cc853951c62a41f18f357d703 to your computer and use it in GitHub Desktop.

Select an option

Save arifnd/25f7ae9cc853951c62a41f18f357d703 to your computer and use it in GitHub Desktop.
@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