Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. session_start();
  4.  
  5. set_include_path('../library');
  6. require_once ('Zend/Loader/Autoloader.php');
  7. Zend_Loader_Autoloader::getInstance();
  8.  
  9. $token = unserialize($_SESSION['TWITTER_ACCESS_TOKEN']);
  10. Zend_Debug::dump($token);
  11. $twitter = new Zend_Service_Twitter(array(
  12.     'username' => 'dcaunt',
  13.     'accessToken' => $token
  14. ));
  15.  
  16. // verify user's credentials with Twitter
  17. //$response = $twitter->account->verifyCredentials();
  18.  
  19. $response   = $twitter->status->update('MyGreatTweet');
  20.  
  21. Zend_Debug::dump($response);