Advertisement
DennisChrDk

GW2 API

Aug 19th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function GetItem(itemID) {
  2.   var myUrl = "http://www.gw2spidy.com/api/v0.9/json/item/" + escape(itemID);
  3.   var jsonData = UrlFetchApp.fetch(myUrl);  
  4.   var jsonString = jsonData.getContentText();
  5.   return jsonObject;  
  6. }
  7.  
  8. function GetItemExchangeValue(jsonObject) {
  9.   return(jsonObject.min_sale_unit_price / 100)
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement