mirror of
https://github.com/wiosna-dev/limesurvey-api-client.git
synced 2026-03-12 02:11:45 +01:00
[WZUW-194] adding function to get uplodaed files info
This commit is contained in:
@@ -485,4 +485,18 @@ class SurveyService
|
||||
->run('export_responses_by_token', $arguments)
|
||||
->getData(true);
|
||||
}
|
||||
|
||||
public function exportUploadedFilesByToken($surveyId, $token)
|
||||
{
|
||||
$arguments = [
|
||||
$surveyId,
|
||||
'json',
|
||||
$token,
|
||||
];
|
||||
|
||||
return $this
|
||||
->client
|
||||
->run('get_uploaded_files', $arguments)
|
||||
->getData(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,6 +97,8 @@ class MethodType extends BaseType
|
||||
|
||||
const GET_RESPONSE_IDS = 'get_response_ids';
|
||||
|
||||
const EXPORT_UPLOADED_FILES_BY_TOKEN = 'get_uploaded_files';
|
||||
|
||||
/**
|
||||
* Returns validated name of method to call or throws an exception (if method is incorrect)
|
||||
*
|
||||
@@ -131,7 +133,8 @@ class MethodType extends BaseType
|
||||
static::LIST_SURVEYS,
|
||||
static::LIST_USERS,
|
||||
static::EXPORT_RESPONSES_BY_TOKEN,
|
||||
static::GET_RESPONSE_IDS
|
||||
static::GET_RESPONSE_IDS,
|
||||
static::EXPORT_UPLOADED_FILES_BY_TOKEN
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user