PHP code example of laposta / laposta-api-php

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

    

laposta / laposta-api-php example snippets




Laposta::setApiKey("JdMtbsMq2jqJdQZD9AHC");
$member = new Laposta_Member("BaImMu3JZA");
$result = $member->get("[email protected]");
 

Laposta::setHttps(false);

Laposta::setHttpsDisableVerifyPeer(true);