Unable to access SDC data via a private gadget

27 views
Skip to first unread message

Harni Sandher

unread,
Jan 14, 2013, 6:16:18 AM1/14/13
to googl...@googlegroups.com
Hi 

I've been trying to get a gadget to access data using the SDC, I've tried the examples provided on the https://developers.google.com/secure-data-connector/docs/1.3/tutorials/gadgets website but this doesn't work.
I can access the data via:
 a. a visualisation gadget using query.send
 b. a spreadsheet using =import example

I believe the example at url https://developers.google.com/secure-data-connector/docs/1.3/tutorials/gadgets isn't correct and some other params may need to be setup.
The following code works

var query = new google.visualization.Query("http://www.corp.example.com/planets.txt");
   query.makeRequest(responseHandler);

BUT NOT
  var params = {};
  params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;
  gadgets.io.makeRequest(url, function(response){log(response);}, params);

Thanks

Harni
Reply all
Reply to author
Forward
0 new messages