PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of andrea bernardi   PHP Twitter Timeline Feed   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: PHP Twitter Timeline Feed
Retrieve the tweets from a user timeline
Author: By
Last change:
Date: 7 years ago
Size: 419 bytes
 

Contents

Class file image Download
<?php
include_once('GetTwitterFeed.class.php');

header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');

$retrieveUrl = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=[TWITTER_USERNAME]";
$consumer_key = "";
$consumer_key_secret = "";
$objTwitter = new GetTwitterFeed($retrieveUrl, $consumer_key, $consumer_key_secret);
echo
$objTwitter->getJsonFeed();
?>