Exemplo n.º 1
0
 /**
  * If the flag uid_required is setted to TRUE, this method will check it and add to the request.
  *
  * @throws \InvalidArgumentException
  */
 private function checkIfUIDIsRequiredAndAddItToRequestIfNeeded()
 {
     if ($this->uid_required) {
         if (!is_null($this->gigya_user_id)) {
             $this->gigya_request->setParam('UID', $this->gigya_user_id);
         } else {
             throw new \InvalidArgumentException('You should set the UID before call the API.');
         }
     }
 }
Exemplo n.º 2
0
 public static function setCAFile($filename)
 {
     GSRequest::$cafile = $filename;
 }