41 lines
969 B
PHP
41 lines
969 B
PHP
<?php
|
|
class T_wa_sas extends MY_Controller
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->load->library("Wa_sas");
|
|
}
|
|
function send_message()
|
|
{
|
|
$resp = $this->wa_sas->send_message("087823783747", "Testing wa_sas library");
|
|
print_r($resp);
|
|
}
|
|
function image()
|
|
{
|
|
$url = "https://devone.aplikasi.web.id/one-api/imgtoken/show/DFX347A";
|
|
$resp = $this->wa_sas->send_image(
|
|
"+6287823783747",
|
|
"Terima sudah menghubungi kami.",
|
|
$url,
|
|
"image/png",
|
|
"imgscr.png",
|
|
".png"
|
|
);
|
|
print_r($resp);
|
|
}
|
|
function file()
|
|
{
|
|
$url = "https://mobile.simalab.co.id/rpt/run?__report=report/fo/rpt_onlite_002.rptdesign&__format=pdf&PStartDate=2023-08-01&PEndDate=2023-08-16&PBranchID=0&username=adminsas";
|
|
$resp = $this->wa_sas->send_file(
|
|
"0878-237 83747",
|
|
"Laporan Online",
|
|
$url,
|
|
"application/pdf",
|
|
"lap-online.pdf",
|
|
".pdf"
|
|
);
|
|
print_r($resp);
|
|
}
|
|
}
|