For example, in Google Apps Script, I am using this url to get json response below. Then I iterate the response through rows and columns and get the output(chart, datatable, ...etc.)
var url = "
https://yourappid.appspot.com/query?id=ahVzfmFuYWx5dGljc2FwcDRhY3hpb21yFQsSCEFwaVF1ZXJ5GICAgICA8ogKDA&format=json";
var response = UrlFetchApp.fetch(url);
var jsonResponse = Utilities.jsonParse(response.getContentText());
var chartBuilder = Charts.newDataTable()
.addColumn(Charts.ColumnType.NUMBER, "Avg. Visit Duration")
var rows = jsonResponse["rows"];
var columns = jsonResponse["columnHeaders"];
for(var i=0; i < rows.length; i++){
chartBuilder.addRow(rows[i]);
avgVisitDurationVal = rows[i][0]
}
...................................
...................................
...................................
That url only includes the id of the query which was pre-setup using
https://yourappid.appspot.com/adminWhat I want to do is to retrieve data based on date parameters. To do this, we need to pass start_date and end_date parameters to the url. However, the current version of superProxy does not support this feature. As a company, what we want to do is to select the related dates as it is in Google Analytics itself and retrieve the data in real time by using superProxy.
For example it would be great if we would have this option in the url:
var url =
"
https://yourappid.appspot.com/query?id=ahVzfmFuYWx5dGljc2FwcDRhY3hpb21yFQsSCEFwaVF1ZXJ5GICAgICA8ogKDA&format=json&start_date=10-14-2013&end_date=10-16-2013";
This means the superProxy Python source codes need to be changed accordingly. We need your help with this change.