-
Notifications
You must be signed in to change notification settings - Fork 14
1.3 Class GSRequest PHP
Levi edited this page Jun 11, 2026
·
2 revisions
This class is used for sending a request to SAP Customer Data Cloud from Gigya Service.
| Constructor | Description |
|---|---|
| GSRequest(string $apiKey, string $secretKey, string $apiMethod, GSObject $params = null, boolean $useHTTPS = false, string $userKey = null) |
Constructs a request using the following parameters:
|
| Method | Description | undefined | ||||
|---|---|---|---|---|---|---|
| static string | buildQS(GSObject $params) | Converts a GSObject to a query string. | ||||
| GSObject | getParams() | Returns the 'params' field of the request. | ||||
| GSResponse | send(integer $timeout=null) | Sends the request synchronously. The method returns a GSResponse object which represents Gigya's response. Parameter:
|
||||
| static void | setCAFile(string $filename) | Give Gigya the path to the CA file on your computer. Set the filename parameter with the full path to the CA file on your computer. | ||||
| void | setParam(string $param, mixed $val) | Sets a request parameter with a value. | ||||
| static string | UrlEncode(string $value) | Applies URL encoding rules to the parameter string, and returns the outcome. | ||||
| void | setProxy(string $proxy, string $proxyUserPass=":", integer $proxyType=CURLPROXY_HTTP) |
This method provides an option to specify a proxy, through which this request will be sent. Parameters:
|
||||
| void | setCurlOptionsArray(array $curlArray) | This method enables setting multiple options for a cURL session, in addition to the option that is supported with the GSRequest.setProxy method. Parameter:
|