/**
  * 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;
 }
Ejemplo n.º 2
0
 function prepare($args)
 {
     parent::prepare($args);
     $this->nickname = $this->trimmed('nickname');
     $this->password = $this->arg('password');
     $this->oauthTokenParam = $this->arg('oauth_token');
     $this->mode = $this->arg('mode');
     $this->store = new ApiGNUsocialOAuthDataStore();
     try {
         $this->app = $this->store->getAppByRequestToken($this->oauthTokenParam);
     } catch (Exception $e) {
         $this->clientError($e->getMessage());
     }
     return true;
 }