-
Notifications
You must be signed in to change notification settings - Fork 10
1.1 Class GSRequest Python
Levi edited this page Jun 11, 2026
·
3 revisions
This class is used for sending a request to Gigya Service.
| Constructor | Description |
|---|---|
| GSRequest(string
apiKey=None, string secretKey=None, string apiMethod=None, JSON params=None, Boolean useHTTPS=False, userKey=None) |
Constructs a request using the following parameters:
|
| Method | Description | |
|---|---|---|
| static string | buildQS(JSON params) | Converts a params dictionary to a sorted query string. |
| JSON object | getParams() | Returns the 'params' field of the request. |
| GSResponse | send(integer timeout=None) | Sends the request synchronously. The method returns a GSResponse object which represents Gigya's response. Parameter:
|
| void | setParam(string param, val) | Sets a request parameter with a value. The val parameter can be of any type. |
| static string | UrlEncode(string value) | Applies URL encoding rules to the parameter string, and returns the outcome. |
| void | setProxy(string proxy) | The IP address or domain of the proxy through which this request will be sent. |
| void | setAPIDomain(string apiDomain=None) | Sets the data center domain used for making API calls. This method provides the option to override the default domain "us1.gigya.com" and specify an alternative data center to be used. Value:
|
.