Client API
Introduction

Client API

What is the Client API?

The Client API is a way to extend Loopbear's on-page capabilities. While Loopbear's core functionality is fully baked into the Loopbear script without any further configuration, the Client API has methods that can extend the capabilities of Loopbear to do some pretty powerful things like showing or hiding your surveys programmatically, passing fields and variables through to Loopbear, and more.

What are the Client API methods?

Below are the methods we currently offer:

MethodDescription
ShowLoad and show different surveys based on their ID.
HideHide a survey based on its ID.
EventsFire events that trigger different surveys based on their settings.
FieldsAutomatically fill certain survey fields based on their slug.
VariablesPersonalize survey text based on dynamic variables.
IdentifyVerify users by email or user ID.