Skip to content

Instantly share code, notes, and snippets.

@jfinstrom
Created December 3, 2012 23:14
Show Gist options
  • Save jfinstrom/4198979 to your computer and use it in GitHub Desktop.
Save jfinstrom/4198979 to your computer and use it in GitHub Desktop.
Adds neweggPrice("neweggpartnumber") as a custom spreadsheet function in google docs.
function neweggPrice(part) {
var response = UrlFetchApp.fetch('http://www.ows.newegg.com/Products.egg/' + part);
var j = response.getContentText();
var data = Utilities.jsonParse(j);
var price = data["FinalPrice"];
return(price);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment