Accessing Content via the API

To get the variables that are being presented to a user, use the getVars API call. In order to perform the call, you'll need the following:

appId String Found in app settings
clientKey String Production or development key in app settings
userId String userId of the user that you want to see the variables for
devMode Boolean True or false depending on which client key is used

 

The API call will appear as such: 

http://www.leanplum.com/api?appId=APP_ID_HERE&clientKey=DEV_OR_PROD_KEY_HERE&apiVersion=1.0.6&action=getVars&userId=USERID_HERE&includeDefaults=true&devMode=TRUE_OR_FALSE


Was this article helpful?
Have more questions? Submit a request