whisperbuddy/whisperbuddy-php

PHP library for whisperbuddy.com's Lead and Listener

1.0.5 2016-04-08 09:07 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:14:46 UTC


README

Build Status

  1. Install

You need php 5.4 or later

composer require whisperbuddy/whisperbuddy-php
  1. Example Usage
<?php
   
   
   require(__DIR__ . 'path/to/vendor/autoload.php');
   
   
   use whisperbuddy\WhisperBuddy;
   
   
   
   $key = "NC8XanSyKcyU8PtUOnl-xxxxxxxxxx";
   $secret = "mE7sGcH-zQc_-KF6xxxxxxxxxxxxxx";
   
   
   $whisperbuddy = new WhisperBuddy($key,$secret);
   
   // Create new Lead
   
   $data = [ 'name'=> 'John Smith' , 'email'=>'johnsmith@gmail.com'];
   
   $response = $whisperbuddy->createLead($data);
   
   
   var_dump($response);
   
   
   // Create Listener
   
   
   $listener = $whisperbuddy->listen();
   
   var_dump($listener);