these are just toughts about using the Restful API to write macros to a WEBI Report.
I think that we can accomplish that following the below steps :
1 – Get a logon token;
2 – Open the document through OpenDocument, passing the token as a parameter ( have a look at How to pass a parameter to a WEBI doc
3 – Save the document (have a look at How to autosave a Document over itself each n seconds );
4 – Make your Restful calls and save the document through a Restful call );
5 – Reload the Document ( through a refresh, have a look at How to set a WEBI document to autorefresh each n seconds ),
I would like to discuss these options with anyone interested on it.