2017 © Pedro Peláez
 

library php-topsy

A php rest client for Topsy's Otter API with support for rate limiting and error handling

image

thesmart/php-topsy

A php rest client for Topsy's Otter API with support for rate limiting and error handling

  • Friday, August 24, 2012
  • by thesmart
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-topsy

A php rest client for Topsy's Otter API with support for rate limiting and error handling., (*1)

Brought to you by the fine developers @ Telly.com, (*2)

Usage

Usage is very simple, similar to Facebook's SDK:, (*3)

$topsy = new TopsyApi('my api key', 'example.com');
try {
    $result = $topsy->api('authorinfo', array('url' => 'http://twitter.com/thesmart'));
} catch (TopsyApiException $tae) {
    error_log('Topsy error message: ' . $tae->getMessage());
    error_log('Topsy status code: ' . $tae->getCode());
}

The contents of $result is this:, (*4)

array (
    'name' => 'John Smart',
    'nick' => 'thesmart',
    'description' => 'Chief Architect and CoFounder of Zoosk.com. Geeky and profound, enjoying the ride.',
    'influence_level' => 0,
    'url' => 'http://twitter.com/thesmart',
    'image_url' => 'http://a0.twimg.com/profile_images/1508630405/Screen_shot_2011-02-23_at_3.10.25_PM.png_normal.jpg',
    'type' => 'twitter',
    'topsy_author_url' => 'http://topsy.com/twitter/thesmart',
);

The Versions

24/08 2012

dev-master

9999999-dev https://github.com/thesmart/php-topsy

A php rest client for Topsy's Otter API with support for rate limiting and error handling

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

topsy otter

24/08 2012

v0.1.0

0.1.0.0 https://github.com/thesmart/php-topsy

A php rest client for Topsy's Otter API with support for rate limiting and error handling

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

topsy otter