Created
December 3, 2012 23:14
-
-
Save jfinstrom/4198979 to your computer and use it in GitHub Desktop.
Adds neweggPrice("neweggpartnumber") as a custom spreadsheet function in google docs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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