2017 © Pedro Peláez
 

library brightlocal-api

BrightLocal API wrapper and examples

image

masana/brightlocal-api

BrightLocal API wrapper and examples

  • Tuesday, November 29, 2016
  • by masana
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

BrightLocal API

A basic PHP wrapper to make using the BrightLocal API a little easier. It takes care of authentication so you just need to specify which method you want to call and pass parameters., (*1)

Installation

It's easiest to install and use the library via Composer., (*2)

Step 1: Add to the requires section of your composer.json file., (*3)

"require": {
    "brightlocal/api": "0.*"
}

Step 2: Install, (*4)

composer install

Examples

<?php
require 'BrightLocal/Api.php';

$api = new BrightLocal\Api('YOUR_API_KEY', 'YOUR_API_SECRET');

// get a list of clients
print_r($api->call('/v2/clients/get-all'));

// get a client
print_r($api->call('/v2/clients/get', array(
    'client-id' => 1059
)));

// get LSRC report list
print_r($api->call('/v2/lsrc/get-all'));

// get LSRC report
print_r($api->call('/v2/lsrc/get', array(
    'campaign-id' => 50
)));

// get CT report list
print_r($api->call('/v2/ct/get-all'));

// get a CT report
print_r($api->call('/v2/ct/get', array(
    'report-id' => 259
)));

Example Scripts

Example scripts can be found in /Examples. We'll be adding to these scripts over time., (*5)

The Versions

29/11 2016

dev-patch-1

dev-patch-1

BrightLocal API wrapper and examples

  Sources   Download

The Requires

 

by Ed Eliot

09/11 2016

dev-master

9999999-dev

BrightLocal API wrapper and examples

  Sources   Download

The Requires

 

by Ed Eliot

24/03 2015

dev-develop

dev-develop

BrightLocal API wrapper and examples

  Sources   Download

The Requires

 

by Ed Eliot

26/01 2015

v0.4

0.4.0.0

BrightLocal API wrapper and examples

  Sources   Download

The Requires

 

by Ed Eliot

12/08 2014

v0.3

0.3.0.0

BrightLocal API wrapper and examples

  Sources   Download

The Requires

 

by Ed Eliot

18/06 2014

v0.2

0.2.0.0

BrightLocal API wrapper and examples

  Sources   Download

The Requires

 

by Ed Eliot

16/06 2014

v0.1

0.1.0.0

BrightLocal API wrapper and examples

  Sources   Download

The Requires

 

by Ed Eliot