Did you read the documentation of the API?
Here you find in "export responses"
export_responses(string $sSessionKey,integer $iSurveyID,string $sDocumentType,string $sLanguageCode = null,string $sCompletionStatus = 'all',string $sHeadingType = 'code',string $sResponseType = 'short',integer $iFromResponseID = null,integer $iToResponseID = null,array $aFields = null): array|string
You use only the basic call with default settings after the document type.
Code:
$response = $myJSONRPCClient->export_responses(
$sessionKey,
$survey_id,
'json', // Document type : pdf,csv,xls,doc,json
null, // Language code : null : default from survey
'all', // Stautus complete|incomplete|all
null, // Heading : code|full|abbreviated : question text, default code
null // answer : short|long , default : long
);
But here is a call with specified fields to export (you have to use the SGQA code of fields)
Code:
$surveyResponses = $myJSONRPCClient->export_responses(
$sessionKey,
$survey_id,
'json', // Document type : pdf,csv,xls,doc,json
null, // Language code : null : default from survey
'complete', // Stautus complete|incomplete|all
NULL, // Heading : code|full|abbreviated : question text, default code
NULL, // answer : short|long , default : long
1, // From Response ID
3000, // To Response ID
['id','token','submitdate','lastpage','interviewtime','email','159677X490time','159677X487time','159677X490X9219SQ001','159677X490X9221SQ001']
);
These two examples of a call in php.
But you see the important things.
Maybe this helps.
Joffm