2017 © Pedro Peláez
 

library leadvalidator-clients

Wrapper for Leadvalidator API

image

findforsikring/leadvalidator-clients

Wrapper for Leadvalidator API

  • Monday, May 15, 2017
  • by mortenscheel
  • Repository
  • 4 Watchers
  • 0 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 13 % Grown

The README.md

LeadValidator Clients

Installation

$ composer require findforsikring/leadvalidator-clients

Lead source usage

$client = new \LeadValidator\SourceClient("api token");

// List available campaigns
$campaigns = $client->getCampaigns();

// Detailed campaign info
$campaign = $client->getCampaign(12);

/* 
 * Post a lead
 * 1st parameter is campaign ID.
 * 2nd parameter must use keys defined in the campaign
 */
$success = $client->postLead(12, [
    'name' => 'Lead name',
    'phone' => '12345678',
    'email' => 'test@test.com'
]);

Lead customer usage

$client = new \LeadValidator\CustomerClient("api token");

/* 
 * Get all new leads (not delivered yet)
 * Optionally limit by campaign or source
 * Optional pagination
 */
$leads = $client->getNewLeads();

/* 
 * Get all leads from a period
 * Limit by creation-time or delivery-time
 * Optionally limit by campaign or source
 * Optional pagination
 */
$leads = $client->getLeadsFromPeriod();

The Versions

15/05 2017

dev-master

9999999-dev

Wrapper for Leadvalidator API

  Sources   Download

15/05 2017

1.0.2

1.0.2.0

Wrapper for Leadvalidator API

  Sources   Download

15/05 2017

1.0.1

1.0.1.0

Wrapper for Leadvalidator API

  Sources   Download

15/05 2017

1.0

1.0.0.0

Wrapper for Leadvalidator API

  Sources   Download

15/05 2017

0.1.2

0.1.2.0

Wrapper for Leadvalidator API

  Sources   Download

15/05 2017

0.1.1

0.1.1.0

Wrapper for Leadvalidator API

  Sources   Download

15/05 2017

0.1

0.1.0.0

Wrapper for Leadvalidator API

  Sources   Download