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
/** | |
* This code is fetching twitter stats on our tweets: retweets and likes at the moment. | |
* | |
* @Author: Ido Green | |
* @date: 4/2017 | |
* @see: | |
* https://github.com/googlesamples/apps-script-oauth1 | |
* https://dev.twitter.com/rest/reference/get/statuses/show/id | |
* | |
*/ |
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
<?php | |
/** | |
* @author: Ido Green | |
* @date 6/28/2015 | |
* @desc: Analyze the words from our firebase DB. | |
* Steps: | |
* 1. Fetch text from the DB | |
* 2. Split into words | |
* 3. Remove 2 character words and stopwords | |
* 4. Determine word frequency + density |
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
/** | |
* YouTube Analytics API Example | |
* Fetch views and 'estimated view time' on videos you have in your channel. | |
* | |
* @Author: Ido Green | |
* @Date: Aug 2014 | |
* | |
*/ | |
function getVideoEstimatedMinutesWatched(videoId) { | |
var myChannels = YouTube.Channels.list('id', {mine: true}); |