Skip to content

Console commands to get profile and feature data

Mikko Johansson edited this page Jun 3, 2013 · 3 revisions

Commands for javascript console

//This is for old user application var CSRF_Cookie_Name = gnt.config.CSRF_cookie_name; var getCookie = function (f) { return dojo.cookie( gnt.config.CSRF_cookie_name );} var api_full_url = gnt.config.api_full_url; var l; get_profiles("?time__now=true", function(data) {l = data;}); // Gives JSON error on server //gnt.data_processing.json_to_csv(l);

var ol; gnt.opensocial_people.get_person('@all', function(data) { ol = data.entry; gnt.data_processing.json_to_csv(ol);}); var fe; gnt.geo.get_features("?time__now=true", function(data) {fe = data; gnt.data_processing.geojson_to_csv(fe);});

Clone this wiki locally