PHP Classes

File: How_to_use.php

Recommend this page to a friend!
  Classes of Shafiul Azam  >  Easy Twitter Authenticaion Class - OAuth & Session  >  How_to_use.php  >  Download  
File: How_to_use.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: Easy Twitter Authenticaion Class - OAuth & Session
Authenticate Twitter users using oAuth
Author: By
Last change: minor changes
Date: 5 years ago
Size: 477 bytes


Class file image Download

First, get your Application's "conusmer key" & "consumer secret" from
& put them in twitterWrapper.php

// authenticate twitter users

require_once 'twitterWrapper.php';
$myT = new twitterWrapper();

// security check done.

To print the user's Twitter username, you can call:

<?php echo "Thanks for authenticating yourself, " . $myT->getIdentifier(); ?>