Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getItemPrice(itemName)
- {
- var response = UrlFetchApp.fetch("http://api.rsbuddy.com/grandExchange?a=guidePrice&i=" + itemName.replace(" ", "+"))
- var prices = Utilities.jsonParse(response.getContentText())
- Utilities.sleep(1000)
- return prices["overall"]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement