Example #1
0
 /**
  * Check validation of the data center.
  */
 public function apiValidate($api_key, $api_secret, $api_domain)
 {
     $request = new GSRequest($api_key, $api_secret, 'socialize.shortenURL');
     $request->setAPIDomain($api_domain);
     $request->setParam('url', 'http://gigya.com');
     ini_set('arg_separator.output', '&');
     $res = $request->send();
     ini_restore('arg_separator.output');
     return $res;
 }
 public function sendRequest($method, $params = array(), $apiDomain = '')
 {
     $request = new \GSRequest($this->apiKey, $this->secretKey, $method);
     foreach ($params as $key => $value) {
         $request->setParam($key, $value);
     }
     if ($apiDomain != '') {
         $request->setAPIDomain($apiDomain);
     }
     return $request->send();
 }
Example #3
0
 public static function setCAFile($filename)
 {
     GSRequest::$cafile = $filename;
 }