rbv_api.getHostedAsText()
Purpose
Returns the content of a hosted file as a string. This method only works for text-based files such as those with extensions of .xml, .html, and .txt. This method only works with native Platform objects.
Syntax
rbv_api.getHostedAsText(origId)
Parameters
origId
Original ID of hosted file
Return value
Content of hosted file as a string or NULL if file doesn't exist
Example
Reads a hosted file as text.
var content = rbv_api.getHostedAsText("configuration.json");