The client offers several methods to call the API client and perform actions.
All examples shown are set in a Production environment.
The following methods are deprecated:
• setSessionToken
• getSurvey
• untilReady
Using methods in the client is easy. Simply create a client, then use a method like this:
client.<method>();
The following example will return a promise. When this promise is resolved, it will return an object with popular results:
var popular = client.getPopular();