PHP code example of ardaryinsim / insim

1. Go to this page and download the library: Download ardaryinsim/insim 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/ */

    

ardaryinsim / insim example snippets



$status_message =json_decode($_GET[« status »]);


$message =json_decode($_GET[« message »]);


$click =json_decode($_GET[« click »]);


$call  =json_decode($_GET[« call  »]);


$qualification  =json_decode($_GET["calls"]);
 php

yinsim\Insim\InSim;
$data='{"header":{"login":"[email protected]","accessKey":"xYGt5Dl9wKvz+#RGGU!PjVB+KfiJAYnh%z4&","mode":"prod","priority":2},"messages":[{"phone_number":"+33*****","message":"Hi Cassandra, can you confirm our appointement?","url":"https://www.my-link.com","priorite": 1,"date_to_send":"2022-10-29 10:16:10"},{"phone_number":"+33*****","message":"Dear customer, your package has been sent","url":"","priorite": 1,"date_to_send":"2022-10-29 10:16:10"}]}';
$api = new InSim();
$response=$api->sendSms($data);