Voice of the Customer

Answers

The API returns all answers of the survey in JSON format, as specified by unique survey id.

In order to use the API you must have the valid environment-specific username and password.

Endpoints

  • https://meo.sn4mobile.com/api/prod/voc/v1/answers - production environment
  • https://meo.sn4mobile.com/api/test/voc/v1/answers - test environment

Request parameters

ParameterDescription 
id The unique id of the survey M
startDate    
endDate    

GET https://meo.sn4mobile.com/api/test/voc/v1/answers/{id}?startDate={startDate}&endDate={endDate}

Request and response example

curl 'https://meo.sn4mobile.com/api/test/voc/v1/answers/3340' -u ABCDEF:123456

Successful API request returns results in JSON format.

{
    "surveyId": 3340,
    "surveyName": "Asiakaspalvelun laadunseuranta",
    "answers": [
        {
            "questionId": 6118,
            "answerId": 3554854960,
            "answerDate": "2018-11-01T14:44:30.055Z",
            "answer": 0,
            "userId": 1634200,
            "responder": "+358000001"
        },
        {
            "questionId": 6118,
            "answerId": 3554854967,
            "answerDate": "2018-11-01T14:44:45.190Z",
            "answer": 2,
            "userId": 68164,
            "responder": "+358000002"
        },
        {
            "questionId": 6118,
            "answerId": 3554855039,
            "answerDate": "2018-11-01T14:46:54.847Z",
            "answer": 10,
            "userId": 4984854,
            "responder": "+358000003"
        }
    ]
}