wsurguy
8 years agoAdept
Community API V2 LiQL following query returning empty set
I am trying to retrieve the following data using the query returned in the user object. The query is SELECT * FROM users WHERE followers.id = 'XXXXX' where XXXXX is the user ID that is known to be ...
- 8 years ago
You can create a proxy endpoint in studio which effectively performs the call in Freemarker using APIv2 and output the raw data in JSON, and you should be able to parse header data into the request using Freemarker as well, I can't see any problems doing that.
You'll need to pass any variables to the endpoint and sanitise them before performing the call which is easy to do and you should be able to pass those variables through the header request or alternatively as URL parameters.
The Freemarker Context Objects documentation for Lithium may help with this.