Exemple #1
0
 /**
  * Constructor - set version = 1
  *
  * @author Maxime Picaud
  * @since 21 août 2010
  */
 public function __construct($key, $secret, $token = null, $config = array())
 {
     $this->version = 1;
     $this->init($config, 'request_token_url');
     $this->init($config, 'consumer');
     $this->init($config, 'request_parameters', 'add');
     parent::__construct($key, $secret, $token, $config);
 }
Exemple #2
0
 public function refreshToken()
 {
     sfOAuth::refresh($this);
 }
Exemple #3
0
 /**
  * Constructor - set version to 2
  *
  * @author Maxime Picaud
  * @since 21 août 2010
  */
 public function __construct($key, $secret, $token = null, $config = array())
 {
     $this->version = 2;
     parent::__construct($key, $secret, $token, $config);
 }