File: src/index.php

Recommend this page to a friend!
  Classes of Arash Soleimani  >  leomoon PHP Twitter RSS  >  src/index.php  >  Download  
File: src/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: leomoon PHP Twitter RSS
Generate RSS feeds from Twitter user statuses
Author: By
Last change:
Date: 3 months ago
Size: 552 bytes
 

Contents

Class file image Download
<?
// example
include_once dirname(__FILE__) . '/twitter2rss.class.php';
$screenName = 'YourTwitterAccountName';
$options = array(
   
'keys'=>array(
       
'CONSUMER_KEY'=>'CONSUMERKEYGOESHERE',
       
'CONSUMER_SECRET'=>'CONSUMERSECRETGOESHERE',
       
'ACCESS_TOKEN'=>'ACCESSTOKENGOESHERE',
       
'ACCESS_SECRET'=>'ACCESSSECRETGOESHERE',
    ),
   
'cache_dir'=>'./cache/', // default: ./cache/ (optional)
   
'cache_time'=>10, // minutes; default: 15 (optional)
   
'limit'=>10, // default: 20 (optional)
   
);

$rss = new twitter2rss($screenName, $options);
$rss->render();

?>


For more information send a message to info at phpclasses dot org.