Skip to content

rquarta-extera/leadbi-php-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeadBI PHP SDK

Install

Add the LeadBI PHP SDK as a dependency to your composer.json file:

{
  "require": {
    "leadbi/leadbi-php-sdk": "dev-master"
  }
}

Consider replacing dev-master with the latest version in order to pin your dependencies.

Install the Composer dependency:

php composer.phar install

Usage

This example demonstrates how you can use the SDK to access the api.

<?php
require 'vendor/autoload.php';
require 'config.php';

use LeadBI\LeadBIConfig;
use LeadBI\LeadBIAPI;

$config = new LeadBIConfig(ACCESS_ID, SECRET_KEY, ENDPOINT, SECURE);
$config->debug = DEBUG;

$api = new LeadBIAPI($config);
$response = $api->get("/api/v1/websites");

// Show the results
echo '<pre>';
print_r($response);
echo '</pre>';

Examples

More examples can be found in ./examples directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%