How to integrate the survey
When your survey settings are ready and you are good to go, you will need to integrate it into your site.
Instructions#
Currently, TotalSurvey supports 3 integration methods:
Shortcode#
Shortcodes are a well-known WordPress feature and the majority of WordPress plugins supports it and TotalSurvey does too, you can easily integrate the survey by following these steps:
- Copy the shortcode
- Go to a page or a post where you’re willing to add the survey
- Past the shortcode
- Save changes
- Navigate to the page
Permalink#
A direct link to the survey, this is useful when you want to collect entries without integrating inside a page, quick and simple.
REST API#
Most developers are familiar with REST APIs and dealing with them regularly. TotalSurvey offers a RESTful API to let developers create custom integrations with their systems and it covers:
- Get the survey
- Submit an entry
- Get the survey entries
For more information, please visit the codex section.
PHP#
WordPress is built on PHP and so its themes and plugins. TotalSurvey offers a simple yet convenient PHP API, essentially for theme developers and custom integrations. With the PHP API you can:
- Display the survey