コード例 #1
0
 /**
  * Take arguments for running
  *
  * @param array $args $_REQUEST args
  *
  * @return boolean success flag
  *
  */
 function prepare($args)
 {
     parent::prepare($args);
     // XXX: support "force_login" parameter like Twitter? (Forces the user to enter
     // their credentials to ensure the correct users account is authorized.)
     return true;
 }
コード例 #2
0
 /**
  * Take arguments for running
  *
  * @param array $args $_REQUEST args
  *
  * @return boolean success flag
  *
  */
 function prepare($args)
 {
     parent::prepare($args);
     $this->callback = $this->arg('oauth_callback');
     if (!empty($this->callback)) {
         common_debug("callback: {$this->callback}");
     }
     return true;
 }
コード例 #3
0
 function prepare($args)
 {
     parent::prepare($args);
     $this->nickname = $this->trimmed('nickname');
     $this->password = $this->arg('password');
     $this->oauth_token = $this->arg('oauth_token');
     $this->callback = $this->arg('oauth_callback');
     $this->store = new ApiStatusNetOAuthDataStore();
     $this->app = $this->store->getAppByRequestToken($this->oauth_token);
     return true;
 }