PHP code example of whisperbuddy / whisperbuddy-php

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

    

whisperbuddy / whisperbuddy-php example snippets



	
	
	hisperbuddy\WhisperBuddy;
	
	
	
	$key = "NC8XanSyKcyU8PtUOnl-xxxxxxxxxx";
	$secret = "mE7sGcH-zQc_-KF6xxxxxxxxxxxxxx";
	
	
	$whisperbuddy = new WhisperBuddy($key,$secret);
	
	// Create new Lead
	
	$data = [ 'name'=> 'John Smith' , 'email'=>'[email protected]'];
	
	$response = $whisperbuddy->createLead($data);
	
	
	var_dump($response);
	
	
	// Create Listener
	
	
	$listener = $whisperbuddy->listen();
	
	var_dump($listener);
	
	

 composer