PHP code example of hat-framework / e-goi

1. Go to this page and download the library: Download hat-framework/e-goi 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/ */

    

hat-framework / e-goi example snippets




$apikey = "<e-goi api key>";

$arguments = array(
    "apikey" => $apikey
);

// $api = EgoiApiFactory::getApi(Protocol::Soap);
// $api = EgoiApiFactory::getApi(Protocol::Rest);
$api = EgoiApiFactory::getApi(Protocol::XmlRpc);
$result = $api->getUserData($arguments);
print_r($result);