Skip to content
Various API wrappers for PHP
Find file
Pull request Compare This branch is 16 commits behind calevans:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Klout
Opendover
Quova
Transport
Exception.php
Klout.php
License.txt
Opendover.php
Quova.php
readme.markdown

readme.markdown

API Wrapper

Requirements

Installation:

Place the CalEvans directory in a directory in your include_path.

Klout Usage:

$o = new CalEvans_Klout($key,'CalEvans');
foreach ($o->topics() as $topic) {
    echo $topic . "\n";
}

OpenDover Usage:

$o = new CalEvans_Opendover($key,new CalEvans_Transport_Curl());
$twitterStream = file_get_contents('http://search.twitter.com/search.json?q=politics');
$twitterStream=json_decode($twitterStream);
foreach($twitterStream->results as $tweet) {
    $y=$o->searchSentiments($tweet->text);
    echo $tweet->text."\n";
    print_r($y);
    sleep(1);
}

Quova Usage:

$o = new CalEvans_Quova($key,$secret,new CalEvans_Transport_Curl());
$returnValue = $o->ipinfo($ipAddress);
echo $returnValue->Location->CityData->city;

Release Notes:

1.0 - Initial public release

1.1 - Pulled curl code out of _execute and created a Transport.

2.0 Added Opendover API wrapper Added header tracking to Transport Transport_Exception now have the headers as part of the message.

3.0 Added Quova API wrapper

Something went wrong with that request. Please try again.