Skip to content

Instantly share code, notes, and snippets.

@mhawksey
mhawksey / gist:1717690
Created February 1, 2012 15:56
TAGS hack to get tweets from Topsy's Otter API
// this function was inspired by a suggestion by @CoBPEZ last year. Originally coded for TAGSv2 I've dusted it off
// for something I was doing with TAGSv3 http://mashe.hawksey.info/2012/01/twitter-archive-tagsv3/
// extra column headings you can use with this are topsy_trackback_url score hits trackback_total
function getTopsyTweets(searchTerm, maxResults, maxtime, languageCode) {
// maxtime is a unix-timestamp format
//Based on Mikael Thuneberg getTweets - mod by mhawksey to convert to json
// if you include setRowsData this can be used to output chosen entries
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sumSheet = ss.getSheetByName("Readme/Settings");