Skip to content

Instantly share code, notes, and snippets.

@sebasoffia
sebasoffia / instagram_count_to_googe_sheet.js
Created November 26, 2018 00:30 — forked from nickboyce/instagram_count_to_googe_sheet.js
Track your Instagram followers over time with Google Sheets Scripts
// 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]);
//Primero configuramos nombre y email del remitente
//Este es el filtro del mail de remitente:
add_filter('wp_mail_from', 'new_mail_from');
//Este es el filtro para el nombre del remitente:
add_filter('wp_mail_from_name', 'new_mail_from_name');
Column A | Column B
-------- | -------
Cell A1 | Cell B1
Cell A2 | Cell B2