wonderflow-bv / example-survey-api-client

An example of a node.js client for Wonderflow Survey API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EXAMPLE-SURVEY-API-CLIENT

An example of a node.js client for the Wonderflow Survey API

Install

git clone git@github.com:wonderflow-bv/example-survey-api-client.git

cd example-survey-api-client

npm i

Run example

npm run example

Output

login

	{
	    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imdpb3Zhbm5pQHdvbmRlcmZsb3cuY28iLCJpYXQiOjE1MzA2NjE3NTYsImV4cCI6MTUzMTI2NjU1Nn0.Tf9hmgyEfVqXnH2yw6V4Sc74XjXa1r4LHyRFFPiq8OM"
	}



insertSurveyResponse

	{
	    "error": "",
	    "hint": "Survey response inserted correctly",
	    "surveyResponse": {
	        "surveyId": "422989",
	        "questionId": "3666178",
	        "respondentId": "1207212",
	        "rating": 5,
	        "comment": "because the operator was not kind"
	    }
	}



retrieveSurveyResponse

	{
	    "skip": 23,
	    "limit": 1,
	    "total": 24,
	    "data": [
	        {
	            "surveyId": "422989",
	            "questionId": "3666178",
	            "respondentId": "1207212",
	            "rating": 5,
	            "comment": "because the operator was not kind"
	        }
	    ]
	}

About

An example of a node.js client for Wonderflow Survey API


Languages

Language:JavaScript 100.0%