SHARE
TWEET

Untitled

a guest Feb 26th, 2012 23 Never
  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);
RAW Paste Data
Top