PHP code example of sebmak / goabroadhq-sdk

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

    

sebmak / goabroadhq-sdk example snippets


  
 $config = [
 
  'env'=>'prod',
    'credentials'=>[
      'username'=>API_USERNAME,
      'password'=>API_PASSWORD
    ]
  ]

  use GaHqSdk\LeadCapture;
  
  ...
  
  $hq = new LeadCapture($config);

  $hq->render('FirstName',array('class'=>'input','name'=>'FirstName'))

    $hq = new LeadCapture($config);
    $response = $hq->submitLead($_POST);