Skip to content

Instantly share code, notes, and snippets.

@NiceGuyNimni
NiceGuyNimni / twitterConsole.php
Created July 14, 2013 11:27
A PHP class to handle Twitter API version 1.1. requests without the need for user authentication
<?php
class twitterConsole {
// This Class handles sending requests to Twitter's API without user authentication (See example at the end of the file)
private $twitterKey = 'ENTER_YOUR_KEY';
private $twitterSecret = 'ENTER_YOUR_SECRET';
private $keyConcatination =''; // Will be generated while constructing the class (See Below)
private $token = ''; // Will be generated while constructing the class (See Below)
public function __construct() {