mtougeron/klout-sdk-php

This package is abandoned and no longer maintained. No replacement package was suggested.

SDK for the Klout API v2

1.0.0-alpha 2013-08-08 15:57 UTC

This package is not auto-updated.

Last update: 2020-09-13 19:24:43 UTC


README

A PHP library for the Klout API

Build Status

=========

Installation

Use Composer to download and install this package as well as its dependencies.

To add this package as dependency for your project, add mtougeron/klout-sdk-php to your project's composer.json file.

{
    "require": {
        "mtougeron/klout-sdk-php": "1.0.*"
    }
}

Usage

use Klout\Klout;
$klout = new Klout('<your Klout API license key');

$user = $klout->getUserByTwitterUsername('mtougeron');

echo $user->getNickname() . '\'s Klout score is ' . round($user->getScore()->getScore());
// outputs: mtougeron's Klout score is 49

Other

Use of the Klout API is bound by Klout's developer Terms of Service