Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @return GoogleOptions
  */
 public function __construct()
 {
     parent::__construct();
     $this->vendorOptions = new VendorOptions(array('authEntryUri' => 'https://accounts.google.com/o/oauth2/auth', 'tokenEntryUri' => 'https://accounts.google.com/o/oauth2/token', 'responseFormat' => 'json', 'headers' => array('GData-Version' => '3.0')));
     $this->stage1->accessType->defaultValue = 'offline';
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @return FacebookOptions
  */
 public function __construct()
 {
     parent::__construct();
     $this->vendorOptions = new VendorOptions(array('authEntryUri' => 'https://www.facebook.com/dialog/oauth', 'tokenEntryUri' => 'https://graph.facebook.com/oauth/access_token', 'responseFormat' => 'urlencode', 'headers' => array()));
     $this->stage2Response->expiresIn->accessKey = 'expires';
     return $this;
 }
Exemplo n.º 3
0
 /**
  * Constructor
  *
  * @return GoogleOptions
  */
 public function __construct()
 {
     parent::__construct();
     $this->vendorOptions = new VendorOptions(array('authEntryUri' => 'https://accounts.google.com/o/oauth2/auth', 'tokenEntryUri' => 'https://accounts.google.com/o/oauth2/token', 'responseFormat' => 'json', 'headers' => array('GData-Version' => '3.0')));
 }