PHP code example of hymns / infoblast-api

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

    

hymns / infoblast-api example snippets


 
use Hymns\Infoblast\OpenAPI;

$response = (new OpenAPI())->send('phone-number', 'your-messages');

var_dump($response);

 
use Hymns\Infoblast\OpenAPI;

$response = (new OpenAPI())->status('messageID', true | false);

var_dump($response);

 
use Hymns\Infoblast\OpenAPI;

$response = (new OpenAPI())->pull('new', true | false);

var_dump($response);