API ini mendukung dua aksi: Obfuscate dan Decode.
Endpoint: POST /api/index.js?action=obfuscate POST /api/index.js?action=decode
Headers: Content-Type: application/json
Body JSON (Obfuscate):
{
"php_code": ""
}
Body JSON (Decode):
{
"encoded_code": ""
}
Respon Berhasil:
{
"result": ""
}
Respon Gagal:
{
"error": "Pesan kesalahan"
}
Contoh CURL Obfuscate:
curl -X POST http://localhost:3000/api/index.js?action=obfuscate \
-H "Content-Type: application/json" \
-d '{"php_code": ""}'
Contoh CURL Decode:
curl -X POST http://localhost:3000/api/index.js?action=decode \
-H "Content-Type: application/json" \
-d '{"encoded_code": ""}'