Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A backtweets API client utilizing the Zend Framework
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Recordshelf/Service
tests/Recordshelf/Service
README.markdown

README.markdown

backtweets-api-client

The backtweets-api-client is a the TDD way developed client to the backtweets API utilizing several components of the Zend Framework. 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 API or the advanced backtweets search.

Usage Example 1:

<?php
require_once 'Recordshelf/Service/Backtweets.php';

$configuration = array('api_key' => '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:

<?php
require_once 'Recordshelf/Service/Backtweets.php';

$configuration = array('api_key' => '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:

<?php
require_once 'Recordshelf/Service/Backtweets.php';

$configuration = array('api_key' => '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);
Something went wrong with that request. Please try again.