An open API service indexing awesome lists of open source software.

https://github.com/raphaelstolt/backtweets-api-client

A backtweets API client utilizing the Zend Framework
https://github.com/raphaelstolt/backtweets-api-client

Last synced: over 1 year ago
JSON representation

A backtweets API client utilizing the Zend Framework

Awesome Lists containing this project

README

          

backtweets-api-client
======
The **backtweets-api-client** is a the TDD way developed client to the [backtweets](http://backtweets.com/api/) API utilizing several components of the [Zend Framework](http://framework.zend.com/). The backtweets service allows you to monitor your website presence on the twittersphere.

Requirements
------------
* An installed version of the Zend Framework >= 1.7.8

Examples
------------
The following examples show some edge cases for using the backtweets API programmaticly with the **backtweets-api-client**. For a complete list of available filter options take a peek at the [backtweets](http://backtweets.com/api/) API or the [advanced backtweets search](http://backtweets.com/search).

#### Usage Example 1:

'YOUR_API_KEY',
'response_format' => 'xml');

$service = new Recordshelf_Service_Backtweets($configuration);

$searchFilter = array('url' => 'http://framework.zend.com',
'start' => '2009/07/01',
'end' => '2009/07/21');

$resultsInXml = $service->search($searchFilter);

#### Usage Example 2:

'YOUR_API_KEY',
'response_format' => 'json');

$service = new Recordshelf_Service_Backtweets($configuration);

$searchFilter = array('url' => 'http://framework.zend.com',
'from_name' => 'padraicb');

$resultsFromPadraicbInJson = $service->search($searchFilter);

#### Usage Example 3:

'YOUR_API_KEY',
'response_format' => 'json');

$service = new Recordshelf_Service_Backtweets($configuration);

$searchFilter = array('url' => 'http://framework.zend.com',
'since_id' => '2487455095');

$resultsSinceId2487455095InAnArray = $service->search($searchFilter, true);