I'm looking to create a custom script to get and display data from a file attached to a document, e.g. a json or csv file.
I know there are macros that display these files, but if I'm looking to do something more, how can I get access to the files attached to a confluence page or workspace.
E.g. lets say there is a data.json file that I want to attach, and I want to write a custom script to process and display that data in an interesting way, how can I get access to that. It is trivial to do if that csv were hosted elsewhere, then I'd make a request for the document itself via the url. But when it is attached to a page, I don't know what that url is, or whether there is some other mechanism.