You can also access it with: $rest->get(‘variablename’)
or return ${rest->get(‘variablename’)}
If you want to access the REST data directly (without saving the response as a variable), set the Source, then you usually use the built in Builder functions, or use: ${value->get(‘fieldname1’)->get(‘fieldname2’)}
or on a single REST data page (a slug for instance) you usually need to use ${page->get(‘fieldname1’)->get(‘fieldname2’)}
There isn’t much clear documentation around this, but ask specific questions here, and the community is most likely able to help you, if we fail, @dejan will most definitely fix it
I’m able to pull the values now.
But I guess everytime only after logout & login the REST api started working. Initially even after I added the rest->get(‘variablename’) , it was not woring. After relogging in it worked, which might have to be fixed.
You probably need an access token or likely to keep the REST “open”, this can also be done using REST variables and proper set cache (depending on how your request access is configured).
I use this for an “access token” renewed every 15 minutes and feed that token value into each request. Divhunt is virtually limitless on what you can do.
Ex:
Get and set token (See name is set to “#1 xxxx” to make sure this request loads first):