There is a way to make API calls and get the results in a spreadsheet - the only way I know this is to create / open the target table, go to the tools, and then to the Script editor and use this as a related script:
function Maestro() { var ss = SpreadsheetApp.getActiveSpreadsheet(); //get active spreadsheet (bound to this script) var sheet = ss.getSheetByName('mae'); //The name of the sheet tab where you are sending the info var apiCall = 'getUpcomingConference'; var apiKey = '_____key here______'; var apiToken = '______security token______'; var url = 'http://myaccount.maestroconference.com/_access/' + apiCall +"?customer=" + apiKey + "&key=" + apiToken; //api endpoint as a string var response = UrlFetchApp.fetch(url); // get api endpoint var json = response.getContentText(); // get the response content as text var mae = JSON.parse(json); //parse text into json Logger.log(mae); //log data to logger var stats=[]; //create empty array to hold data points var date = new Date(); //create new date for timestamp //The number in brackets refers to which instance we are looking at - soonest upcoming call is [0], next after that is [1], etc. stats.push(date); //timestamp stats.push(mae.value.conference[0].name); stats.push(mae.value.conference[0].scheduledStartTime); stats.push(mae.value.conference[0].UID); //append the stats array to the active sheet sheet.appendRow(stats); }
He needs a small interface, but it works! It takes information from an API call and places it in a spreadsheet.
source share