Skip to content

Latest commit

 

History

History
80 lines (72 loc) · 3.72 KB

Push.md

File metadata and controls

80 lines (72 loc) · 3.72 KB

Survey Push API

The survey push API is a module in the survey platform that triggers at 5 minutes intervals and sends any new data over to a customer server using HTTP(S) POST with JSON data. If no new data is available, no requests will be sent.

The server side will have to respond with a HTTP 200 ok if the request was successfully received, if any HTTP error codes are returned then the request will be retried on the next trigger.

Property list

Property NameData TypeDescription
idIntegerUnique integer identifier for survey
surveyidIntegerManual survey id
agentidStringIdentifier for agent
queueStringIdentifier for queue
ratingStringEnd user's score
responseStringEnd user's reply
smsSentDateStringTimestamp of the first SMS sent to the end user
teamStringIdentifier for team
follow_up_responseStringEnd user's follow up response
nameStringEnd user's name
addressStringEnd user's address
streetStringEnd user's street name
housenumberStringEnd user's housenumber
entryStringEnd user's entry
postnumberStringEnd user's post number
postAreaStringEnd user's post area
extraParamName1String1. extra parameter name
extraParamName2String2. extra parameter name
extraParamName3String3. extra parameter name
extraParamName4String4. extra parameter name
extraParamName5String5. extra parameter name
extraParamValue1String1. extra value
extraParamValue2String2. extra value
extraParamValue3String3. extra value
extraParamValue4String4. extra value
extraParamValue5String5. extra value
commentStringYour comment
updatedStringLast modified

Example - Push of survey data using HTTP(S) POST with JSON

{
"callcenterSurveyList": [
    {
        "id": 4483,
        "surveyid": 0,
        "msisdn": "+4712345678",
        "agentid": "agent1",
        "queue": "queue1",
        "rating": "8",
        "response": "5 abc",
        "smsSentDate": "2016-10-21T15:23:43.423+0200",
        "team": "team1",
        "follow_up_response": null,
        "name": "Minh Do Le",
        "address": "Brynsveien 13 ; 0667 Oslo",
        "street": "Brynsveien",
	    "housenumber": "13",
		"entry": null,
	    "postnumber": "0667",
	    "postArea": "Oslo",
        "extraParamName1": "waitingTime",
        "extraParamName2": "callDuration",
        "extraParamName3": null,
        "extraParamName4": null,
        "extraParamName5": null,
        "extraParamValue1": "01:12:50",
        "extraParamValue2": "01:12:50",
        "extraParamValue3": null,
        "extraParamValue4": null,
        "extraParamValue5": null,
        "comment": "OK",
  		"updated": "2016-10-21T15:27:04.387+0200"      
    }
],
"manualSurveyList": []
}