These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
Google Docs & ImportXML woes regarding EVE-central. Pull stops working
function loadPrices(priceIDs,systemID,cachebuster){ if (typeof systemID == 'undefined'){ systemID=30000142; //Jita }... var url="http://api.eve-central.com/api/marketstat?cachebuster="+cachebuster+"&usesystem="+systemID+"&typeid=";...rows[i].getChild("buy").getChild("volume").getValue(),rows[i].getChild("sell").getChild("volume").getValue(),rows[i].getChild("sell").getChild("min").getValue()];
Request failed for http://api.eve-central.com/api/marketstat?cachebuster=1&usesystem=30000142 returned code 414/ Truncated server response: URL length exceeds the configured limit of 2048 characters (Use muteHttpExceptions option to examine full response). (line 29).
var xmlFeed = UrlFetchApp.fetch(url+cleanTypeIds.join("&typeid="), parameters).getContentText();
=VLOOKUP(B4,price load!A:D,4,FALSE)
var url="http://api.eve-central.com/api/marketstat?cachebuster="+cachebuster+"®ionlimit="+regionID+"&typeid=";
var url="http://api.eve-central.com/api/marketstat?cachebuster="+cachebuster+"&usesystem="+regionID+"&typeid=";
Woo! CSM XI!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
var i,j,temparray,chunk = 100;for (i=0,j=cleanTypeIds.length; i < j; i+=chunk) {temparray = cleanTypeIds.slice(i,i+chunk);
Creator of EVE-Central.com, the longest running EVE Market Aggregator
=VLOOKUP(B4,priceload!A1:D,4,FALSE)
var price=[parseInt(rows[i].getAttribute("id").getValue()),
=VLOOKUP(B4,'price load'!A:D,4,FALSE)
http://youtu.be/YVkUvmDQ3HY
function loadPrices(priceIDs,locationID,cachebuster){// priceIDs = [[35],[36],[37]]; if (typeof locationID == 'undefined'){ locationID=10000002; // default region is The Forge } var str = locationID.toString(); // is region or system, throw if neither var strScope = str.substr(0,1); if(strScope=="3") var scope = "usesystem="; else if(strScope=="1") var scope = "regionlimit="; else throw 'Invalid locationID'; // no typeIds specified if (typeof priceIDs == 'undefined'){ throw 'need typeids'; } if (typeof cachebuster == 'undefined'){ cachebuster=1; }// define some arrays and base uri var prices = new Array(); var dirtyTypeIds = new Array(); var cleanTypeIds = new Array(); var url="http://api.eve-central.com/api/marketstat?cachebuster="+cachebuster+"&"+scope+locationID+"&typeid="; if(typeof priceIDs === 'number') // check for single number typeID dirtyTypeIds.push(priceIDs); else if(!Array.isArray(priceIDs)) // check for invalid input throw 'Invalid typeID(s)'; else priceIDs.forEach (function (row) { // So must be a range reference or array dirtyTypeIds.push(row); row.forEach ( function (cell) { if (typeof(cell) === 'number' ) { dirtyTypeIds.push(cell); } }); }); cleanTypeIds = dirtyTypeIds.filter(function(v,i,a) { return a.indexOf(v)===i; }); var parameters = {method : "get", payload : ""}; var xmlFeed = UrlFetchApp.fetch(url+cleanTypeIds.join(","), parameters).getContentText(); var xml = XmlService.parse(xmlFeed); var prices = new Array; if(xml) { var rows=xml.getRootElement().getChild("marketstat").getChildren("type"); for(var i = 0; i < rows.length; i++) { var price=[rows[i].getChild("sell").getChild("percentile").getValue(), rows[i].getChild("buy").getChild("percentile").getValue(), rows[i].getChild("sell").getChild("volume").getValue(), rows[i].getChild("buy").getChild("volume").getValue()]; prices.push(price); } } return prices;}
Use EveKit ! - Tools for EVE Online 3rd party development