SoGoSurvey provides simple and powerful programmatic access to your survey data using a secure application programming interface of Web API. To use this document, you should have a basic familiarity with software development, Web API and the SoGoSurvey user interface.
The functionality described in this guide is available only in Enterprise accounts enabled for API integration. To enable this option within your Enterprise account, Contact us to take advantage of this option.
SoGoSurvey is both scalable and extensible, and it embraces open Internet standards for access and consumption.
SoGoSurvey Web API provides the following verbs for your use:
|updateContactList()||This method can be used to update and add new records within an existing Contact List.|
|getSurveyURL()||This method can be used to obtain the multi-use link of a survey.|
|sendSurveyInvite()||This method can be used to send email invitations to a list of email addresses.|
|sendSurveyReminder()||This method can be used to send email Reminders to non-participants.|
|generateSurveyKey()||This method can be used to generate Survey Passwords to publish your survey offline.|
|sendSurveyInviteWithReminder()||This method can be used to send email invitations along with reminders to a list of email addresses.|
|getParticipationStatusInfo()||This method can be used to obtain participation status using the participant’s email address.|
|getSurveyList()||This method returns a list of all surveys in the account, including the relevant information.|
|getData()||This method can be used to obtain survey responses in JSON format.|
Customize, integrate, and extend your SoGoSurvey solution using the language and platform of your choice:
The Web API is implemented to comply with the following specifications:
|HTTP Verbs (GET, POST, PUT, DELETE)||http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html|
The Web API can be used in all major programming languages that support HTTP Protocol.
Sample code for Web API usages in C#, VB.NET, Python, PHP and Curl are provided in this document.
SoGoSurvey strives to make backward compatibility easy for our API users. We maintain support for each API version across releases of the platform software. The API is backward compatible in that an application created to work with a given API version will continue to work with that same API version in future platform software releases. SoGoSurvey does not guarantee that an application written against one API version will work with future API versions: Changes in method signatures and data representations are often required as we continue to enhance the API. However, we strive to keep the API consistent from version to version with minimal changes required to port applications to newer API versions.
SoGoSurvey is committed to supporting each API version for a minimum of two years from the date of its first release. In order to mature and improve the quality and performance of the API, versions that are more than two years old may cease to be supported. When an API version is to be deprecated, advance end-of-life notice will be given at least six months before support for the API version is ended.
Access SoGoSurvey Web API (with JSON Output) by adding the verb name at the end of the URL below:
We use conventional HTTP response status codes to indicate the success or failure of a Web API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error caused by the information provided (a required parameter was omitted, a method was not found, etc.), and codes in the 5xx range indicate an error with our servers.
|500||Internal Server Error|
API Integration is only available in our Enterprise plan. Contact us to take advantage of this feature.
Please contact SoGoSurvey Support with any questions at email@example.com.
Once you have enabled API Integration in your account, you'll need to generate an API token for your API verbs.Here's how: