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
// the name of the sheet within your document | |
var sheetName = "Sheet1"; | |
// the name of the Instagram account you want to track | |
var instagramAccountName = "kingandmcgaw"; | |
function insertFollowerCount() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getSheetByName(this.sheetName); | |
accountdata = getInstagramData(this.instagramAccountName); | |
sheet.appendRow([Utilities.formatDate(new Date(), "GMT", "yyyy-MM-dd"), accountdata.followerCount]); |