xclusive/lead-posting-gateway-granot

API interface for posting Leads to Granot using their Leads Posting Gateway.

dev-master 2014-09-08 16:49 UTC

This package is auto-updated.

Last update: 2024-10-14 16:50:16 UTC


README

This is an unofficial API for the Granot Lead Posting Gateway.

Find the documentation on what fields you can pass via the following url: http://docs.google.com/View?id=dc9bddx5_10763jwtts

Note that I am only showing a couple of fields, which is not complete. Please refer to the documentation to pass along all required fields.

####Install via Composer

composer require xclusive/lead-posting-gateway-granot

####Use Example:


<?php

    require 'vendor/autoload.php';

    $account = new Granot\Account('API_ID_HERE');
    $lead = new Granot\Lead;

    $lead->servtypeid = 101;
    $lead->firstname = 'First Name';
    $lead->lastname = 'Last Name';

    $post = new Granot\PostLead($account, $lead);

    $response = $post->submit();

    print '<pre>';
    print_r($response);
    print '</pre>';
    
?>