Get answers by respondent

Sometimes, you will need to get the answers of the current respondant in order to show him the next question, calculate a score or do anything with his answers in you backoffice. To do so:

GET https://api.vizir.co/answersByRespondent?rid=ABCD&surveyid=d27FQDSFDQS&appID=413432

The answer will look like this :

{
  "respondantID": "1580554645305455",
  "source": "fb",
  "activeStatus": true,
  "created": 1489602441872,
  "currentSurveyID": "d2751bad4c7733c221f83829bfff4873c5e7e452e7f407db",
  "initSurveyID": "d2751ef2417366922af8392ceefb4873c5e7eb57e3a256dc",
  "surveysTaken": [
    {
      "surveyID": "d2751ef2417366922af8392ceefb4873c5e7eb57e3a256dc",
      "firstTime": 1489602441872,
      "lastTime": 1492792999237,
      "currentQuestionIndex": 3,
      "completedSurvey": false,
      "authData": null,
      "answers": [
        {
          "questionIndex": 0,
          "questionID": "299957071",
          "questionType": "qcm",
          "question": "Bonjour {{first_name}}, prêt à défendre tes chances en Géographie ??",
          "response": [
            "Allons y 👍 💪",
            "Allons y 👍 💪",
            "Allons y 👍 💪",
            "Allons y 👍 💪",
            "Allons y 👍 💪",
            "Allons y 👍 💪",
            "Allons y 👍 💪",
            "Allons y 👍 💪"
          ],
          "timestamp": 1492792917990
        },
        {
          "questionIndex": 1,
          "questionID": "439932027",
          "questionType": "qcm",
          "question": "Tu es plus drapeaux ou capitales ?",
          "response": [
            "Capitales 🌇 🚦 🚉",
            "Drapeaux 🇧🇾 🇫🇮",
            "Capitales 🌇 🚦 🚉",
            "Drapeaux 🇧🇾 🇫🇮",
            "Drapeaux 🇧🇾 🇫🇮",
            "Capitales 🌇 🚦 🚉",
            "Drapeaux 🇧🇾 🇫🇮",
            "Capitales 🌇 🚦 🚉"
          ],
          "timestamp": 1492792943649
        },
        {
          "questionIndex": 2,
          "questionID": "446957918",
          "questionType": "api",
          "question": "Tu as: 100% de bonnes réponses sur 2 questions !! C'est pas si mal, mais tu peux encore progresser 🤓 🤓 🤓",
          "response": [
            "Tanzanie",
            "Singapour",
            "Belgique",
            "Slovénie",
            "score",
            "Continuer",
            "changer de jeux",
            "Chine",
            "Colombie",
            "zscore",
            "Continuer",
            "score",
            "Réinitialiser",
            "France",
            "Moldavie",
            "score",
            "Continuer"
          ],
          "timestamp": 1492792782994
        },
        {
          "questionIndex": 3,
          "questionID": "771231014",
          "questionType": "api",
          "question": "Sainte-Lucie ?",
          "response": [
            "Nukualofa",
            "Apia",
            "Port Moresby",
            "Abu Dhabi",
            "Washington",
            "Manille",
            "Port Louis",
            "Kaboul",
            "Yamoussoukro",
            "score",
            "Continuer",
            "Bratislava",
            "La Valette",
            "Sofia",
            "Apia",
            "San Salvador",
            "score",
            "Réinitialiser",
            "Buenos Aires",
            "Rome",
            "Tirana",
            "Singapour",
            "score",
            "Continuer",
            "Ankara",
            "score",
            "Continuer",
            "Port-Vila",
            "Abu Dhabi",
            "Lima",
            "Djibouti",
            "score",
            "Continuer",
            "Damas",
            "score",
            "Continuer",
            "score"
          ],
          "timestamp": 1492792998487
        }
      ],
      "reminderSent": false,
      "tempAPIquestionValue": "Tu as: 85% de bonnes réponses sur 26 questions !! C'est pas si mal, mais tu peux encore progresser 🤓 🤓 🤓"
    },
    {
      "surveyID": "d2751ef2402337c02af8392ceefb4873c5e7eb57e3a25788",
      "firstTime": 1489603009007,
      "lastTime": 1489603704419,
      "currentQuestionIndex": 0,
      "completedSurvey": false,
      "authData": null,
      "answers": [
        {
          "questionIndex": 0,
          "questionID": "438421403",
          "questionType": "api",
          "question": "Vatican ?",
          "response": [
            "Victoria",
            "Dili",
            "Tripoli",
            "Kinshasa",
            "Gaborone",
            "Tripoli",
            "Yamoussoukro",
            "São Tomé",
            "Abuja",
            "Mogadiscio",
            "Vatican"
          ],
          "timestamp": 1489603703211
        }
      ],
      "reminderSent": false,
      "tempAPIquestionValue": "Belize ?"
    },
    {
      "surveyID": "d2751bad4c7733c221f83829bfff4873c5e7e452e7f407db",
      "firstTime": 1493147588364,
      "lastTime": 1493147588364,
      "currentQuestionIndex": 0,
      "completedSurvey": false,
      "authData": null,
      "answers": []
    }
  ],
  "bounced": false,
  "facebookUserData": {
    "first_name": "Benoit",
    "last_name": "Guiv",
    "profile_pic": "https://scontent.xx.fbcdn.net/v/t1.0-1/12400968_10207962169753822_8147998610643429584_n.jpg?oh=44020e79b7f4c4ad063ff898708b3bc7&oe=595F02DE",
    "locale": "en_US",
    "timezone": 1,
    "gender": "male"
  },
  "read": true,
  "replied": false
}

results matching ""

    No results matching ""