Skip to content

This application combines a JavaScript XHR request with a PHP script to pull down Tweets from a user's timeline.

Notifications You must be signed in to change notification settings

GalAfik/TimelineTweets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter API - User Timeline Example

Table of Contents

About

This application combines a JavaScript XHR request with a PHP script to pull down Tweets from a user's timeline.

Setup

Locate the config/auth-temp.ini and create a copy called config/auth.ini. This file must be kept secret and it will not be tracked by git.

Populate the configuration options with your token and key information.

auth.ini

Supply your access tokens/keys for the options in the authentication configuration file.

; Twitter OAuth Config options

[OAuth]
oauth_access_token = "Access Key"
oauth_access_token_secret = "Access Secret"

[Consumer]
consumer_key = "Consumer Key"
consumer_secret = "Consumer Secret"

Example

The following example pulls down the five; most recent Tweets from Bill Gate's Twitter timeline.

http://localhost/TimelineTweets/index.html?user_id=50393960&count=5

The response is in JSON format using Twitter's v1.1 API with OAuth.

Attributions

Based off of Andy Fitch's twitter-proxy Github project.

About

This application combines a JavaScript XHR request with a PHP script to pull down Tweets from a user's timeline.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 70.9%
  • JavaScript 15.5%
  • HTML 7.0%
  • CSS 6.6%