I was wondering how to go about making a basic single dataset Plotly REST call using google apps scripts. Could someone please provide just a basic function that does this? It would greatly help me, and will try and help those in the future who help me. I think I'm getting hung up on adding the dataset. This what I have so far:
Let dataSet be a (nx2) array in the form [[date0, r0], [date1, r1], ..., [daten, rn]] s.t. date0 > daten and ri in the reals.
function plot(dataSet){
var key = "XXXXXXXXXX";
var url = "https://plot.ly/clientresp";
var un = "un=XXXXXXX";
var origin = "origin=plot";
var platform = "platform=lisp";
...
return plotlyUrlImage;
}