Initial import

This commit is contained in:
sas.fajri
2026-04-27 10:26:26 +07:00
commit bf9b9097ee
2388 changed files with 3002242 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class ApiTest extends CI_Controller {
public function index() {
// Load the JurnalApi library with parameters
$this->load->library('JurnalApi', [
'username' => 'BQp5iG3LFuka65JF', // Replace with your HMAC username
'secret' => 'OXCGaRQsVLaAmGU003BFSkPCbkVVVxtU', // Replace with your HMAC secret
'environment' => 'sandbox' // Use 'production' for live API
]);
// Define the request method and endpoint
$requestMethod = 'GET';
$requestPath = '/public/jurnal/api/v1/sales_invoices';
// Make the API request and capture the response
$response = $this->jurnalapi->request($requestMethod, $requestPath);
// Display the response
echo json_encode($response);
}
}