SK_PLUS4_PostEvalDataResponse Function

Parses a response from a server-side script which was originally designed to work with the Automation Client's SK_PostRegData or SK_PostRegDataEx functions.

Remarks

Before calling this function, you need to call SK_PLUS4_PostEvalDataRequest to generate the URL-encoded post string, and submit the request to the server using SK_HttpRequest (which returns the response this function is meant to parse).

Syntax

C/C++
SK_ResultCode SK_PLUS4_PostEvalDataResponse(SK_ApiContext context, int flags, const char *response, int *errorCode, int *registrationId);
Visual Basic
Declare Function SK_PLUS4_PostEvalDataResponse(ByVal context As Long, ByVal flags As Long, ByVal response As String, ByRef errorCode As Long, ByRef registrationId As Long) As Long

Arguments

context
The API Context handle.
flags
Any flags passed into this function-call.
response
The response returned from the server.
errorCode
Reference/pointer to an integer, which will receive the Automation Client compatible error code.
registrationId
Reference/pointer to an integer, which will receive the unique identifier issued by the server after successfully registering an evaluation.

Returns

All possible return values are included in the SK_ResultCode enumeration. Return codes to expect include:

Result Code Description
SK_ResultCode.SK_ERROR_NONE No error.
SK_ResultCode.SK_ERROR_INVALID_DATA The presence of invalid data has been detected.
SK_ResultCode.SK_ERROR_INVALID_ARGUMENTS Some or all of the arguments are invalid.
SK_ResultCode.SK_ERROR_WEBSERVICE_RETURNED_FAILURE A call to a Web Service succeeded, but the functionality of the Web Service returned an indicator of failure.
SK_ResultCode.SK_ERROR_MEMORY_ALLOCATION Memory could not be allocated.