Skip to content

GoAbroadHQ/GoAbroad-HQ-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#GoAbroad HQ SDK

##Installation

  composer require sebmak/goabroadhq-sdk

##Configuration

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

##Usage

###Controller

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

###View

$hq->render pulls from /src/config/defaults.php and generates html input/textarea/select elements

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

##Submitting Leads

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

About

An SDK for accessign GoAbroadHQ

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages