The Response object is a standard object used by Gigya to pass return values of API methods.

Description

The Response object is a standard object used by Gigya to pass return values of API methods.
The Gigya service uses an asynchronous programming model in which API methods are triggered and then run in the background until they are completed.
Upon successful or unsuccessful completion, the operation invokes a callback function, which is provided by the developer.
The Gigya service expects the callback function to have the standard signature - mycallback(response).
The one parameter that the callback function receives is the response object. The response object contains the values returned from the API method.
The Response object has some common data members, which are values that are returned by all API methods. In addition to the common data members, each API method may define additional members in the response object. Method-specific members are detailed in the reference section for each API call.

All responses sent from Gigya, whether client-side or server-to-server, are gzipped.

 

Common Data Members

FieldTypeDescription

 

Usage Example

function myCallback(response)
    {
        if (response.errorCode==0)
        {
            // handle normal behavior (depends on the original API method call)
            // ...             
        }
        else
        {
            // handle errors
            alert("An error has occurred!" + '\n' + 
                "Error details: " + response.errorMessage + '\n' +  
                "Error code: " + response.errorCode + '\n' +                
                "In method: " + response.operation;
        }
    }   

 

<script>
$(document).ready(function() {
    lssdk.tableFixer();
});
</script>