Table of contents
Description
Initializes the Gigya env service and must be called before any other function.
Note: You must wait for the callback to be called with status='OK' before you calling any other method of this service.
Syntax
gigya.env.init(params)
Global Configuration Object
Please refer to the create a global configuration object section of the Developer's Guide for the full specification.
params Object Members
| Name | Type | Description | |
| Optional | callback | function | A callback function that will be called with the results of the method when it completes. |
| context | object | A context object that will be passed back unmodified to the application in the result object passed to the callback function. |
Response Object Data Members
The response object common members:
| Field | Type | Description |
| hadError | Boolean | Indicates if an error has occurred |
| requestParams | Object | This is the params object that was passed to the original method call. |
| errorCode | int | An error code or 0 if no error has occurred. |
| errorMessage | String | The description of the error.T |
| errorData | Object | This object provides additional data about the error. |
Errors
| Code | Error |
| OK | The operation completed successfully |

Comments