예제 #1
0
 public function __construct($oAuthToken, $oAuthTokenSecret)
 {
     $this->oAuthToken = $oAuthToken;
     $this->oAuthTokenSecret = $oAuthTokenSecret;
     $tweetcrete_rest = new TweetcreteRest($this->oAuthToken, $this->oAuthTokenSecret);
     $this->twitterObj = $tweetcrete_rest->getTwitterOAuthObject();
 }
예제 #2
0
 public function getTwitterOAuthObject($token = FALSE, $token_secret = FALSE)
 {
     $twitterOAuthObject = null;
     if ($this->twitterOAuthObject) {
         $twitterOAuthObject = $this->twitterOAuthObject;
     } else {
         $tweetcrete_rest = new TweetcreteRest($token, $token_secret);
         $twitterOAuthObject = $tweetcrete_rest->getTwitterOAuthObject();
         $this->twitterOAuthObj = $twitterOAuthObject;
     }
     return $twitterOAuthObject;
 }