Methods

Methods

The client offers several methods to call the API client and perform actions.

Note

All examples shown are set in a Production environment.

Available methods

Caution

The following methods are deprecated:

• setSessionToken

• getSurvey

• untilReady

Usage

Using methods in the client is easy. Simply create a client, then use a method like this:

client.<method>();

Example

The following example will return a promise. When this promise is resolved, it will return an object with popular results:

var popular = client.getPopular();

Strict Standards: Only variables should be passed by reference in /var/www/html/src/Controllers/MarkdownController.php on line 73

Strict Standards: Only variables should be passed by reference in /var/www/html/src/Controllers/MarkdownController.php on line 73