Member-only story
Saving SurveyMonkey Response in MongoDB Automatically When a Survey is Submitted Using a Go Server | GCP | Webhook
11 min readFeb 8, 2023
This article will cover how to create a webhook so that whenever a survey (SurveyMonkey) created by you gets submitted by someone, SurveyMonkey will send a notification through the webhook, which can be used to retrieve the survey response.
We will see how to set up everything so that when a survey is submitted, SurveyMonkey will send a payload with the corresponding response ID to our Go server, which we will use to retrieve the user response and save the data to our MongoDB database running on MongoDB Atlas.
Want me to do this for you? Let me know.
Table of Contents
- What is SurveyMonkey
- What is a Webhook
- Creating a Go server
- Creating a VM instance on Google Compute Engine
- Setting up the E2 Instance for Go
- Allow a port for the incoming requests to our instance
- Upload the code to our E2 instance
- How to create a webhook on SurveyMonkey
- Getting survey ID for your surveys
- Creating our server that will respond to HEAD requests and POST…