<?php
include "Twitter.class.php"; // Include the twitter class file.
$twitter = new Twitter(); // Instantiate a new Twitter object.
$twitter->logIn("username", "password"); // Log in using username "username" and password "password". This will obviously not work, change these to your own.
$twitter->setNewStatus("I can post a status using a cool PHP class!"); // Set a new status
$twitter->setNewStatus("And I can do it multiple times!"); // Set another new status
?>
|