Forum Discussion
AdamN
12 years agoKhoros Oracle
Hi Liam,
Check out the following page which has details on "view" attributes for REST API responses:
http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?page=apiresponse
The main one you'll be interested in for getting URLs is "view_href". More information here:
If you're working with the response via FreeMarker in a custom component, you can use FreeMarker to get the value of an element attribute by using the format "@attributeName". For example, if you're assigned a message to the variable "myMessage", you could do something like this to output the URL of the message:
${myMessage.@view_href}
More details on accessing element attributes here:
http://freemarker.org/docs/xgui_imperative_learn.html#autoid_70
Related Content
- 9 months ago
- 3 months ago