I am trying to test lime survey Remote control 2 API using post man. I have enabled RPC for JSON on my live survey instance.
i make a get request on postman(As shown in the image attached) for get_session and export_responses method.
In both the cases, i get status 200 OK along with the following text in the body
Loading...
RemoteControl is available using json for transport and exposes the following functionality:
activate_survey
/**
* Activate an existing survey
*
* Return the result of the activation
* Failure status : Invalid Survey ID, Constistency check error, Activation Error, Invalid session key, No permission
*
* @access public
* @param string $sSessionKey Auth credentials
* @param int $iSurveyID ID of the Survey to be activated
* @return array in case of success result of the activation
*/
activate_tokens
/**
* Initialise the token system of a survey where new participant tokens may be later added.
*
* @access public
* @param string $sSessionKey Auth credentials
* @param integer $iSurveyID ID of the Survey where a survey participants table will be created for
* @param array $aAttributeFields An array of integer describing any additional attribute fields
* @return array Status=>OK when successful, otherwise the error description
*/
add_group
/**
* Add an empty group with minimum details to a chosen survey.
* Used as a placeholder for importing questions.
* Returns the groupid of the created group.
*
* @access public
* @param string $sSessionKey Auth credentials
* @param int $iSurveyID ID of the Survey to add the group
and so on...
why don't i get a string as i should in both the cases?