1. Go to this page and download the library: Download fernandoebert/avisaapp library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fernandoebert / avisaapp example snippets
ernandoebert\avisaApp\AvisaApp;
//$avisaApp = new AvisaApp("/use-token/"); // using v2
$avisaApp = new AvisaApp("/use-token/", ['version' => 1]); // using v1 (only on paid plan)
try {
$info = $avisaApp
->instance()
->info();
print_r($info);
} catch (Exception $e) {
print_r($e);
}
ernandoebert\avisaApp\AvisaApp;
//$avisaApp = new AvisaApp("/use-token/"); // using v2
$avisaApp = new AvisaApp("/use-token/", ['version' => 1]); // using v1 (only on paid plan)
try {
$send = $avisaApp
->message()
->send(
"48991348266",
"Olá, acabei de baixar o componente e estou testando"
);
var_dump($send);
} catch (Exception $e) {
var_dump($e);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.