/** * 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; }
/** * 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; }
/** * 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'))); }