예제 #1
0
 /**
  * Constructor.
  *
  * @param   JRegistry    $options  Google options object
  * @param   JGoogleAuth  $auth     Google data http client object
  *
  * @since   12.3
  */
 public function __construct(JRegistry $options = null, JGoogleAuth $auth = null)
 {
     parent::__construct($options, $auth);
     if (isset($this->auth) && !$this->auth->getOption('scope')) {
         $this->auth->setOption('scope', 'https://picasaweb.google.com/data/');
     }
 }
예제 #2
0
 /**
  * Constructor.
  *
  * @param   JRegistry    $options  Google options object
  * @param   JGoogleAuth  $auth     Google data http client object
  *
  * @since   1234
  */
 public function __construct(JRegistry $options = null, JGoogleAuth $auth = null)
 {
     parent::__construct($options, $auth);
     if (isset($this->auth) && !$this->auth->getOption('scope')) {
         $this->auth->setOption('scope', 'https://www.googleapis.com/auth/plus.me');
     }
 }
 /**
  * Constructor.
  *
  * @param   Registry     $options  Google options object
  * @param   JGoogleAuth  $auth     Google data http client object
  *
  * @since   12.3
  */
 public function __construct(Registry $options = null, JGoogleAuth $auth = null)
 {
     // Setup the default API url if not already set.
     $options->def('api.url', 'https://www.googleapis.com/plus/v1/');
     parent::__construct($options, $auth);
     if (isset($this->auth) && !$this->auth->getOption('scope')) {
         $this->auth->setOption('scope', 'https://www.googleapis.com/auth/plus.me');
     }
 }