form-urlencoded

Form URL Encoded

try {
  const result = await nexaUi
    .Network({
      type: "v2",
      credensial: "KUNCI-API-ANDA",
      secret: "KUNCI-RAHASIA-ANDA",
      contentType: "application/x-www-form-urlencoded"
    }).post("form-submit", {
      username: "budi_123",
      password: "kata_sandi_aman"
    });
  console.log(result);
} catch (error) {
  console.error("Error:", error);
}